OOP stands for object-oriented programming. OOP is a programming paradigm related to objects.
OOP's main concepts are object and class. Each object communicates with the others.
Class is a template(blueprint) for creating a object. It contains attributes/properties/datas/state and behavior/methods/actions.
example: home blueprint/sketch
Object is instance of class. Object has attributes , methods and identify.
object is a real entity
, example: real home
- Clear structure.
- Reusable.
- DRY code (don't repeat yourself).
- Maintainable/Bug fixing/dedug easy.
- Adoptable.
- Secure,protect infromation through encapsulation.
- Faster development sprint.
- Inheritance (extends parent class with child class)
- Encapsulation (binding properties/method one unit)
- Abstraction (Hiding implementation)
- Polymorphism (Many form)