C++ is general purpose case sensitive programming language that supports procedural, object oriented, and generic programming. It is middle level language.
C++ was developed by Bjarne stroupstrup in AT & T bell laboratory in 1980’s and it is based on c programming language.
It is object oriented programming language.
Object oriented programming
C++ is fully supports object oriented programming including 4 main features of object oriented development.
OOP Meaning : In OOP language everything is based on object. It is a programming model or paradigm.
Object : It is an entity
Encapsulation : Wrapping of the data into single unit is known as encapsulation.
Abstraction : Abstraction means bidding of the data.
Inheritance : Deriving new class from base class is called aa inheritance.
Polymorphism : It means having one name with multiple form.
Features of object oriented programming
- Emphasis is on data rather than procedure.
- Programs are divided into what are known as objects.
- Data structure are designed such that they characterized the object.
- Function that operate on the data of an object are tied together in the data structure.
- Data is hidden and cannot be accessed by external function.
- Objects may communicate with each other through function.
- Implies bottom up approach in program design.
- New data and functions can be easily added whenever necessary.
Characteristics of object oriented programming
- Objects are basic run time entity in cpp.
- The data type of class are abstract data type.
- Function is method to access the private data which belongs to same class .
- It can encapsulate the data .
- C++ strongly support re usability things.
- Object may communicate with one another with the help of message passing.
- Polymorphism is also main characteristics of oop which provides function overloading and operator overloading.
- Abstract which hides the unnecessary information and gives necessary information.
Also Read –
- Structure of C++ program
- Datatypes in Cpp
- Variables in Cpp
- Variable scope
- Inheritance Introduction
- Single Inheritance
- Multiple Inheritance
- Multi Level Inheritance
- Hybrid Inheritance
- Hierarchical Inheritance