OBJECT ORIENTED PROGRAMMING – OOPS
WHAT IS OBJECT ORIENTED PROGRAMMING ?
Object Oriented Programming is based on the concept of objects. Everything is considered as an object. Object is a combination of data and operations performed on it. For example , any real world entity such as table ,paper, etc,..
PILLARS OF OOPS
INHERITANCE – It is like a parent – child relationship. The child class acquires the properties of the parent class.
ABSTRACTION – It is the process of providing only the essential details and hiding the implementation details.
ENCAPSULATION – It is the process of wrapping the data and code together as a single unit.
POLYMORPHISM – It is the process in which an object, variable or a function can take different forms.
CLASS – Class is the blueprint for creating an object.
OBJECT – Object is an instance of the class.
BENEFITS OF OOPS
- It is easy to maintain and modify.
- It maintains the security of data.
- It supports code reusability.