What is the features of the OOPs in C++ ?
Object oriented programming:
-Object Oriented programming is a programming which is associated with the concept of Class, Objects and various other concepts revolving around these two, like Inheritance, Polymorphism, Abstraction, Encapsulation etc.
Class:
Here we can take Human Being as a class. A class is a blueprint for any functional entity which defines its properties and its functions. Like Human Being, having body parts, and performing various actions.
Objects:
My name is Abhay, and I am an instance/object of class Male. When we say, Human Being, Male or Female, we just mean a kind, you, your friend, me we are the forms of these classes. We have a physical existence while a class is just a logical definition. We are the objects.
Inheritance:
When one class inherit the properties of another class then this concept is called as inheritance.
Polymorphism:
Something that have many forms called as polymorphism
Abstraction:
Data hiding is called as Abstraction
Encapsulation:
Data type or data memeber are shown as one entity is called as encapsulation.
Read More →