11 commandments of object-oriented programming (OOP)

1. Software entities (classes, modules, etc) should be open for extension, but closed for modification.  (The open/closed principle -- Bertrand Meyer) 2. Derived classes must usable through the base class interface without the need for the user to know the difference.  (The Liskov Substitution Principle) 3. Details should depend upon abstractions.  Abstractions should not depend …

Continue reading 11 commandments of object-oriented programming (OOP)

Advertisements