http://en.wikipedia.org/wiki/SOLID_(object-oriented_design)
- Single responsibility principle (SRP)
- An object should have only a single responsibility.
- Open/closed principle (OCP)
- Software entitles … should be open for extension, but closed for modification.
- Liskov substitution principle (LSP)
- Objects in a program should be replaceable with instance of their subtypes without altering the correctness of that program.
- Interface segregation principle (ISP)
- Many client specific interfaces are better one general purpose interface
- Dependency inversion principle (DIP
- Do not depend upon concretions. One should depend upon abstraction.
No comments:
Post a Comment