Posts

Showing posts from February, 2022

Solid Principles

Image
  Solid Principles What are the SOLID principles?   In software engineering,  SOLID  is a  short form  for five object-oriented design principles intended to make software designs more understandable. They are a subset of many principles. it was introduced by Robert C. Martin in his 2000 paper Design Principles and Design Patterns.  These SOLID principles should be followed when designing software. Lets see what are the SOLID principles.        1.     Single responsibility 2.     Open-close 3.     Liskov substitution 4.     Interface segregation 5.     Dependency inversion 1. Single responsibility   Robert C. Martin describes it as, “A class should have one and only one reason to change, meaning that a class should have only one job” It means that every object in the system should have one responsibility and all the object code should be focus...