05 Jan

5 Prinzipien im Klassen-Design


Auch für den eigenen Merkzettel :)
Dies sind fünf PDF Dateien von Object Mentor die ein paar Prinzipien beim Design von Klassen beschreiben.
SRP The Single Responsibility Principle A class should have one, and only one, reason to change.
OCP The Open Closed Principle You should be able to extend a classes behavior, without modifying it.
LSP The Liskov Substitution Principle Derived classes must be substitutable for their base classes.
DIP The Dependency Inversion Principle Depend on abstractions, not on concretions.
ISP The Interface Segregation Principle Make fine grained interfaces that are client specific.
Technorati-Tags: ,,,,

Der Eintrag ist mir etwas Wert
Comments have been closed on this topic.