Open Closed Principle in C++ | SOLID as a Rock

This is the second part of a five-part article series about SOLID as Rock design principle. The SOLID design principles, when combined together, make it easy for a programmer to craft software that is easy to maintain, reuse & extend. Open-Closed Principle(OCP) is the second principle in this series which I will discuss here with minimalistic example in Modern C++ along with its benefits & generic guideline. By the way, If you haven’t gone through my previous articles on design principles, then below is the quick links:...

April 7, 2020 · 8 min · 1596 words · Vishal Chovatiya