1.What are the principle concepts of OOPS?
2.What is Abstraction?
3.What is Encapsulation?
There are four principle concepts upon which object oriented design and programming rest. They are:
- Abstraction
- Polymorphism
- Inheritance
- Encapsulation (i.e. easily remembered as A-PIE).
2.What is Abstraction?
Abstraction refers to the act of representing essential features without including the background details or explanations.
3.What is Encapsulation?
Encapsulation is a technique used for
hiding the properties and behaviors of an object and allowing outside
access only as appropriate. It prevents other objects from directly
altering or accessing the properties or methods of the encapsulated
object.