Wednesday 3 April 2013

OOP Concepts

The security level of c++ is very high as it provides three data visibility modes that is public, private and protected. whereas in C language we have one mode.

The data abstraction- The process of representing the data members and the member functions without showing the internal or the background details.

Encapsulation- It is the process of wrapping up of data members and member's functions into a single entity. For example data members and members functions are represented as encapsulated object.

Polymorphism- it is the ability to take more than one form. For example- if we want to add two numbers and both of them are integers then we have to do their addition and on the other hand if we have two strings then we can concatenate them. Both are used to perform same functions but produces different output.

Operator overloading- It is the process of accessing the data using the user defined variables.

Data hiding – The Insulation of the data members and member's functions is known as data hiding, as it is used to maintain more high security level.

Inheritance- It uses the concept of reusability in such a way that the features of base class is access by the derived class. It is of five types-
1. Single Inheritance
2. Hybrid inheritance
3. Multilevel inheritance
4. Multiple inheritance
5. Hierarchical Inheritance

Virtual functions- It is used to access the features of the derived base class when the name of the both the objects are same when we are carrying out the operation of the inheritance.


Blog Author: Vijay Kumar


No comments:

Post a Comment