What are some best object-oriented design practices?

Vojto picture Vojto · Apr 28, 2011 · Viewed 31.1k times · Source

I didn't find any question that would be this general.

Please post whatever you find to be a useful rule for oject-oriented design.

Answer

Pete Stensønes picture Pete Stensønes · Apr 28, 2011

There are many, many OOD practices (Google it!) if you had to pick over others I would go with SOLID an acronym for;

  1. Single Responsibility Principal
  2. Open/closed principle
  3. Liskov substitution principle
  4. Interface segregation principle
  5. Dependency inversion principle