SOLID Design: The Single Responsibility Principle (SRP)

After having covered The Open-Close Principle (OCP) and The Liskov Substitution Principle (LSP) let’s talk about the Single Responsibility Principle (SRP) which is the S in the SOLID acronym. The SRP definition is: A class should have a single responsibility and this responsibility should be entirely encapsulated by the class. This leads to what is … Continue reading SOLID Design: The Single Responsibility Principle (SRP)