About Me

Hello there! Before talking about qualifications and professional abilities, I would like to introduce myself. I am a Yuvraj Basnet and professional software developer and have been working in this field for 3 long years. I have finished my graduation from The University of Delhi on Computer Science Engineering I considered myself a reasonably experienced programmer with a particular interest in the human side of software development, computers are fascinating machine, but they're mostly reflection of the people using them. In the art of software development, studying code isn't enough; you have to study the people behind the software, too.

Features of C++

Features of C++

Features of C++

In the previous tutorial we have discussed Basic Syntax and Program Structure in C++ programming language and in this tutorial we have discuss most important features of C++ programming language  So, without further wasting anytime let's get started.

1. OOP (Object-Oriented Programming):

C++ is an object-oriented language, alike C which is a procedural language. This is the most important features of C++. It engage the use of objects while programming. These objects help you implement real-time problems based on data encapsulation, data abstraction, data hiding, and polymorphism. We have briefly discussed all the 5 main concepts of object-oriented programming.

The OOP concepts are:

Data abstraction: Data abstraction is an act of representing the important features of data without adding the background details or the method applied to obtain it.

Data encapsulation: Data encapsulation is nothing but a process to implement data abstraction by wrapping up the data and functions together or into an exclusive block.

Inheritance may be defined as transferring the properties of the parent class to the child class and we can implement the basic idea of inheritance by creating more than one class, which we explicit refer to as derived or new classes by linking them with what we call the base class.
Inheritance decreases the redundancy of the program and makes it easier to transfer/copy the properties of one class to another class.

Data hiding: Data hiding refers to protecting data from unauthorized access. It is responsible for securing the data/information. It is important to note that data hiding is different from data encapsulation as encapsulation mainly focuses on shifting the centre of attention on crucial data than explaining its complex nature.

Polymorphism: The word poly means ‘many’ and morphism means ‘forms’. So, polymorphism may be defined as displaying that data in more than one form.

2. Platform or Machine Independent/ Portable:
In simple terms, portability means using the same piece of code or statements in various environments or interfaces.

Let us understand this C++ feature with the help of a example. Suppose you write a program to find the name, salary, and age of an worker in LINUX and for some apparent reason you want to switch your operating system to Windows. This program will work in a same way as it works in Windows.

3. Simple:
When we commence with a new programming language, we expect to understand in depth or extent. The simple context of C++ gives an appeal to coders, who wants to learn a new programming language.

If you are works with C previously, then you don’t need to worry about facing any problem while working in C++. Because the syntax of C++ is almost similar to that of C. ultimately C++ is referred to as “C with classes”.

4. High-level programming language:
It is most important to note that C++ is a high-level programming language, alike C programming which is a mid-level programming language. It makes it easier for the coders to work in C++ as a high-level language as we can closely related it with the human-friendly language i.e, English.

5. Popular:
After learning C programming, it is the basic language for many other popular programming languages which supports the feature of object-oriented programming. Bjarne Stroustrup found Simula 67, the first object-oriented language ever, Due to lacking simulations and features he and his team decided to develop C++.

6. Case sensitive:
Similar to C language, it is clear that the C++ programming language treats the uppercase and lowercase characters in a different way. For example, the meaning of the keyword ‘if’ changes if we write it as ‘If’ or “IF”. Other programming languages like MySQL and HTML are not case sensitive.

7. Compiler-Based:
As we know that Python and Java both programming langauge are interpreter-based, C++ is a compiler-based language and consequently it a quite much faster than Java and Python.
8. DMA (Dynamic Memory Allocation):
Since C++ supports the use of pointers, it enable programmers to allocate the memory dynamically. Programmer also use constructors and destructors while working with classes and objects in C++.

9. Existence of Libraries:
The C++ programming language provides a library full of in-built functions that make things simpler for the programmer. These functions can be accessed by including some suitable header files in C++.

10. Speed:
As we discussed prior, C++ is compiler-based programming language so, it is much faster than other programming languages like Java and Python that are interpreter-based.

Post a Comment