(SRP) Single Responsibility Principle

Posted on by

As we discussed in previous post that in SRP there should never be more than one reason for a class to change. That means, in SRP a reason to change is defined as a responsibility, therefore SRP states, “An object should have only one reason to change”. If an object has more than one reason…

What is SOLID principles in Object Oriented Programming?

Posted on by

S.O.L.I.D. is a collection of best-practice, object-oriented design principles which can be applied to your design, allowing you to accomplish various desirable goals such as loose-coupling, higher maintainability, intuitive location of interesting code, etc. S.O.L.I.D. is an acronym for: – SRP: Single Responsibility Principle – OCP: Open Closed Principle – LSP: Liskov Substitution Principle –…

Positive SSL