Explain in detail about the OOPs concepts in C++ with suitable examples
Object oriented Programming (OOPs) uses objects to represent real world objects.
Some important concepts of OOP is encapsulation, inheritance, abstraction,
and polymorphism.
Class - Is a data type that has its own members.
ENCAPSULATION- The concept of wrapping information and data together in a single unit.
Polymorphism- The ability of object to exist in multiple forms.
Inheritance- A class using some characteristic of another class called parent class.
Comments
Leave a comment