Refactoring to achieve open-closed principle (video)
The open-closed principle is one of the SOLID principles for object-oriented programming, and it states that software components, like classes and methods, should be open for extension and closed for modification. In other words, it should be possible to extend the program’s functionality without modifying its existing parts.
[Read More]