Friday, July 1, 2011

The Principles of Object Oriented Design/Classes

The principles of object oriented design are abbreviated under the acronym SOLID which stands for:

S - The Single Responsibility Principle (SRP)
O - The Open Closed Principle (OCP)
L - The Liskov Substitution Principle (LSP)
I - The Interface Segretation Principle (ISP)
D - The Dependency Inversion Principle (DIP)

These principles represent
1. a set of rules that allows us to improve the way we design and
2. set up the dependencies between our classes and
3. it allows us to create more flexible, maintainable, reusable and robust code.

No comments:

Post a Comment