codecooked.com
Open Close Principle
In the previous article we discussed about the Single Responsibility Principle. Today we are going to discuss about the second SOLID Principle that is the Open Close Principle. Open Close Principle states that Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.