SOLID is acronym used for 5 design principles for object oriented programming. Below we'll look at what they are
see wikipedia, OODesign, Objectmentor,
Single Responsibility principle
Every class should have only one responsibility. This responsibility should be totally encapsulated by the class.
Open/Closed principle
Software entities should be open for extension, but closed for modification. This is valuable when it comes to production environments where changes to existing code may require code reviews, unit tests etc. which ensures the quality of the product. In design, inheritance is used to achieve open/closed principle.see wikipedia, OODesign, Objectmentor,