The Origins of C++
C++ began as an expanded version
of C. The C++ extensions were first invented by Bjarne Stroustrup in 1979 at
Bell Laboratories in Murray Hill, New Jersey. He initially called the new
language "C with Classes." However, in 1983 the name was changed to
C++.
To support the principles of
object-oriented programming, all OOP languages have three traits in common:
encapsulation, polymorphism, and inheritance. Let's examine each.
Encapsulation
Encapsulation is the mechanism that binds together code and the data it
manipulates,and keeps both safe from outside interference and misuse. When code
and data are linked together in this fashion, an object is created. Within an object,
code, data, or both may be private to that object or public. Private
Polymorphism
Object-oriented programming
languages support polymorphism, which is characterized
Inheritance
                              stack mystack;When you declare an object of a
class, you are creating an instance of that class. In this case, mystack
is an instance of stack. A class is a logical abstraction, while an object is real. (That
is, an object exists inside the memory of the computer.) The general form of a
simple class declaration is
 
IF ANY PROBLEM THEN CONTACT ON ankitpundir623@gmail.com
