OOP
OOP
1) Abstraction: Hides complexity (ex: volume button on remote)
2) Encapsulation: Hide and secure data
Types:
- member variable (hide state; ex: private or protected),
- function (hide behavior steps, ex: expression-bodied method),
- class (hide domain responsibility, ex: internal)
3) Polymorphism: EX: man = father, husband, and employee
4) Inheritance
Comments
Post a Comment