Professional Documents
Culture Documents
Design Principle-2
Design Principle-2
Design Principle-2
Content:
1. What .?
2. How .?
3. Why .?
What . ?
Software entities like classes, modules and functions should be open for
extension but closed for modifications.
What . ?
DRY(Don't Repeat Yourself)
Use the existing code through inheritance,association,
aggregation or composition instead of rewriting it.
Code should be written for interface
Proper exception handling , handling the error or
throwing it to the caller according to the
requirements
The name of the
packages,classes,variables,interfaces etc. should
be meaningful and according the organisation
standard.
What . ?
What . ?
What . ?
What . ?
What . ?
What . ?
What . ?
What . ?
What . ?
What . ?