OOP

 OOP


1) Abstraction: Hides complexity (ex: volume button on remote)

2) Encapsulation: Hide and secure data

Types:

  1.  member variable (hide state; ex: private or protected),
  2. function (hide behavior steps, ex: expression-bodied method),
  3. class (hide domain responsibility, ex: internal)

3) Polymorphism: EX: man = father, husband, and employee

4) Inheritance


Comments