Single Responsibility Principle
There should never be more than one reason for a class to change.
Open Closed Principle
Module should be open for extension but closed for modification.
Eg: For...
Abstraction
focusing on essential characteristics of an object not all.
Encapsulation
which hides internal details of object.
Modularity
dividing cohesive and loosely coupled
Hierarchy
(is a)
(part of) – Aggregation
...
9
CREATIONAL ( Object Creation)
1. Factory Method
creating an instance of several of derived classes.
2. Abstract Factory
creating a family of classes.
3. Builder
Builds the object in parts. (step by step)
4. Singleton
...