- Abstraction
- Encapsulation
- Polymorphism
- Inheritance
OO Principles:
- Encapsulate what varies
- Favor composition over inheritance
- Program to interfaces, not implementations
- Strive for loosely-coupled designs between objects that interact
- Classes should be open for extension but closed for modification
- Depend on abstraction. Don't depend on concrete classes
No comments:
Post a Comment