Tag Archives: object-oriented-design

Single Responsibility Principle

Definition: According to Uncle Bob Martin “A class should have one, and only one, reason to change” According to Wikipedia “Every object should have a single responsibility, and that responsibility should be entirely encapsulated by the class.  ” Applicability:  We can apply this idea into different level of our code such as: »    Method/Function:  … Read More »

SOLID Principles

[list icon=”arrow” style=”dotted”] Definition ⇒ SOLID is a set of five guiding principles that help developers design objects that are easy to maintain and use. ⇒ SOLID is a guide not goal. ⇒ SOLID is an acronym where: »    S stands for SRP (Single Responsibility principle) »    O stands for OCP (Open closed principle) »    L stands for LSP (Liskov substitution… Read More »