Commonly Used Java Design Pattern. .
What are the basic principle of Design?
when you are doing any design please consider following things.
- From your code/area findout what are the behavior cahnges
- there is chance of change in future), seperate them out in
- From the main class use association to have a link with
- behavior class(which may change in future. ).
- Use interface to representthe behavior
- For association decleration use interface type.
- Prefer association over inheritance
Commonly Design Patterns: