Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.62 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.62 KB

oop-object-oriented-programming

OOP means object oriented programming. OOP is programming paradigm which related with object.

OOP main concept is object and class. each object communicate with each other.

Class

Class is a template of blueprint, which contains attributes/properties/datas/sate and behavior/methods/actions.

ex: home blueprint/sketch

Object

Object is instance of class. object has attributes , methods and identify.object is instance of class. object is real entity, ex: real home

Advantages

  • clear structure.
  • reusable.
  • DRY code (don't repeat yourself).
  • Maintainable/Bug fixing/dedug easy.
  • Adoptable.
  • Reduce complexity.
  • Secure,protect infromation through encapsulation.
  • Faster development sprint.

Main pillar

  1. Inheritance (extends parent class with child class)
  2. Encapsulation (binding properties/method one unit)
  3. Abstraction (Hding implementation)
  4. Polymorphism (Many form)

resource of oop

interview questions