Skip to content

code4mk/oop-object-oriented-oop-journey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 13, 2023
7ed104f · Feb 13, 2023

History

16 Commits
Feb 13, 2023
Feb 13, 2023
Feb 13, 2023
Feb 13, 2023
Mar 2, 2021
Feb 13, 2023
Feb 13, 2023

Repository files navigation

OOP journey

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

Class is a template(blueprint) for creating a object. It contains attributes/properties/datas/state and behavior/methods/actions.

example: home blueprint/sketch

Object

Object is instance of class. Object has attributes , methods and identify.

object is a real entity, example: real home

Advantages

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

Main pillar of OOP

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

Resources