Principle of OOPS
Jul 6, 2022
- DRY , KISS , YAGNI
1. Avoid Code Repetitions (DRY)
2. Keep the code Simple (KISS)
3. Avoid Unnecessary functionality
SOLID
1. Single Responsibility (one class has only one responsibility)
2. Open Closed (Hide Impl Details(Abstartcion) and keep code extensible)
3. Liskosv (it implies on inheritance like child class can replace with other)
4. Interface Segregation (Large Interface must divide into smaller)
5. Dependency Injection (don’t use new keyword in the constructor)