The Open/Closed Principle states that software entities (classes, modules, etc.) should be open for extension, but closed for modification. What does this mean, and why is i
There are two versions of the Open Closed Principle.
See the following for a clear and thorough explanation of both: https://www.slideshare.net/pjschwarz/first-expedia-tech-know-how-event-the-openclosed-principle-the-original-version-and-the-contemporary-version
To whet your appetite, here are screenshots of the first few slides: