History of C++ Programming
- C++ developed by Bjarne Stroustrup in 1979.
- In AT & T's Bell Labs.
- He was modified C language with some spacial class and developed C++ language.
- C++'s OOP aspect was inspired by a computer simulation language called Simula67.
- Java is written in C++.
- C++ is worlds fourth most used programming language.
- C++ developed by Bjarne Stroustrup in 1979.
- In AT & T's Bell Labs.
- He was modified C language with some spacial class and developed C++ language.
- C++'s OOP aspect was inspired by a computer simulation language called Simula67.
- Java is written in C++.
- C++ is worlds fourth most used programming language.
![]() |
Bjarne Stroustrup |
Features of C++ Programming
- C++ is a middle level language.
- C++ supports principle of object oriented paradigm.
- C++ joins three separate programming traditions :
- The procedural language tradition, represented by C.
- The object-oriented language tradition, represented by the class enhancements C++ add to C.
- Generic programming, supported by C++ templates.
Comparison between C and C++ Programming
- C++ is a super set of C language.
- C++ programs can use existing C software libraries.
- C follows top down approach of programming while C++ follows bottom up approach of programming .
- C adopts Procedure Oriented Programming while C++ adopts Object Oriented Programming.
- C++ is a super set of C language.
- C++ programs can use existing C software libraries.
- C follows top down approach of programming while C++ follows bottom up approach of programming .
- C adopts Procedure Oriented Programming while C++ adopts Object Oriented Programming.
Object Oriented Programming
- OOPs is a programming approach which revolves around the concept of "Object".
- Any entity in the system that can be defined as a set of properties and set of operations performed using entity's property set, is known as Object.
- Object Oriented Programming have five key principle is:
- Encapsulation
- Data Hiding
- Abstraction
- Polymorphism
- Inheritance
Classes and Objects
- Class is a blueprint of an object.
- Class is a description of Object's property set and set of operation.
- Creating class is as good as defining a new data type.
- Class is a means to achieve encapsulation.
- Object is a run time entity.
- Object is an instance of a class.
Example of class format :
class box
{
int l,b,h;
void setDimension(int x,int y,int z)
{....}
void showDimension()
{.....}
};
box b1; (here box is datatype and b1 is object).
Thanks for reading I hope you got your doubt if you have any problem then you tell me by comment or facebook.