Beruflich Dokumente
Kultur Dokumente
Viva-voce
C++ introduce by Bjarne Stroustrup at AT&T bell labs in 1982. Initially called c
with classes after that renamed with C++. It is the combination of Features of C +
Class construct features of Simula 67
1. Object:
2. Class:
3. Data Abstraction:
Abstraction is refers to the act of representing essential features
without including the background detail.
4. Data Hiding:
In this concept function of object can only access the data.
Thus private part of the objects is not available outside the object and cannot be altered
by the external changes. This is called Information Hiding or Data Hiding.
5. Encapsulation:
The wrapping up of data and function into a single unit is
known as Encapsulation.
6. Polymorphism:
It is a Greek term means that ability to take more than one form.
7. Function overloading: Refers to the use one function name to perform different
purpose.
8. Static Binding:
Means that the Code associated with the function call linked at
compile time. Also known as early binding or compile time polymorphism. Operator
overloading and Function overloading comes under this category.
9. Dynamic Binding:
It means that the Code associated with the function call linked at the run
time. This is also known as LATE BINDING. Virtual function is used in this concept.
10. Inheritance:
It allows making use of existing classes without making changes to it. The
main advantage of Inheritance is Reusability.
11. Abstract Data type: Classes that use the concept of Data Hiding, is known as ADT.
Sunil Dutt
18. Constructor:
Used to initialize the object data members with values at time of
its creation. This is used to allocate the memory.
19. Dynamic constructor:
Allocation of memory to object at the time of their construction is
known as Dynamic constructor.
20. Copy constructor:
The initialization of an object when done by another object
is called copy constructor.
21. Destructor: Are used to destroy the object that has been created by constructor.
22. Operator Overloading:
Operator overloading refers to the use of one
operator to perform different purposes or tasks.
23. Unary operator overloading:
Unary operator act on only one operand. For
example (unary minus), ++(increment), --(decrement) etc. unary operators overloaded
by means of a member function take no explicit argument and return no explicit values.
When they are overloaded by means of friend function, they take one reference argument.
24. Binary operator overloading:
when they are overloaded by means of
member function the function takes one argument whereas it takes two arguments in case
of friend function.
25. Access Specifier: There are three types of access specifier Private, Public, Protected.
1. public: visible for everyone.
2
Sunil Dutt
Sunil Dutt