You are on page 1of 20

Ravikumer Maddi

Content:

1. What .?
2. How .?
3. Why .?

What . ?

Open Close Principle

Software entities like classes, modules and functions should be open for
extension but closed for modifications.

Dependency Inversion Principle


High-level modules should not depend on low-level modules. Both should
depend on abstractions.
Abstractions should not depend on details. Details should depend on
abstractions.

Interface Segregation Principle


Clients should not be forced to depend upon interfaces that they don't use.

Single Responsibility Principle


A class should have only one reason to change.

Liskov's Substitution Principle


Derived types must be completely substitutable for their base types.

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 . ?

Cont.. Step-by-step Implementation

Conti.. Step-by-step Implementation

What . ?

What . ?

What . ?

What . ?

What . ?

What . ?

You might also like