Object Oriented Programming(OOP)
Object Oriented Programming(OOP) aims to implement real world entities.
The following are the characteristics of object oriented programming:
- Encapsulation: The wrapping up of data and functions into a single unit known as encapsulation.
- Inheritance: If one class inherits attributes of one or more classes,then this function of inheriting attributes is called inheritance.
- Polymorphism: -The ability to take more than one form or function in more than one way is called polymorphism. In other words, function behaving different for different instances.
- Data abstraction: Revealing only the needed information to the outside world and hiding the implementation or sensitive information.
- Data hiding: When the data is not accessible from outside the class, only functions of the class ca access it. This insulation is called data hiding.
Related topics in C++:
Classes in C++
Data members
Member functions
Access specifiers in C++
Polymorphism in C++
Classes in C++
Data members
Member functions
Access specifiers in C++
Polymorphism in C++
No comments:
Post a Comment