S.O.L.I.D - 5 Principles of Object Oriented Design
These principles, when combined together, make it easy for a programmer to develop software that are easy to maintain and extend. They also make it easy for developers to avoid code smells, easily refactor code, and are also a part of the agile or adaptive software development. S.O.L.I.D Stands for: S ingle Responsibility Principle O pen Closed Principle L iskov Substitution Principle I nterface segregation Principle D ependency Inversion Principle Let's look for each principle in brief Single Responsible Principle States that class should have one and only reason to change, meaning that a class should have only one job. In other words, you should write, change and maintain a class for only one purpose. If it is model class then it should strictly represent only entity. This will give you the flexibility to make changes in future without worrying the impacts of changes for another entity. Open Closed Principle Software components like Ob...