Object-Oriented Programming(OOP), is all about creating “objects”. An object is a group of interrelated variables and functions.
These objects provide a better and clear structure for the program.
variables are often referred to as properties of the object
functions are referred to as the behavior of the objects.
4 Pillars of OOPs Concept - Inheritance, Polymorphism, Encapsulation & Abstraction.
- Encapsulation
- Abstraction
- Inheritance
-
Polymorphism
- Method Overloading
- Method Overriding
- Class
- Object
OOPs concept broadly divide into two modules(strong reusability and security)
- Security
- Abstraction
- Encapsulation
- Code Reusability
- Inheritance
- Polymorphism
- Encapsulation
- wrapping up data into single unit is known as Encapsulation.
- Advantage
- It is used for data hiding
- code reusability
- If we want we can make class -read only
- Unit Testing