How can you extend programs without changing them?

What is the OPEN-CLOSED PRINCIPLE?

The open-closed principle might be the most important S.O.L.I.D. design principle. But what is it? How can you extend programs without changing them? Sounds like a contradiction, right? Learn how to minimize code changes when changing existing systems by using Polymorphism.

Want to see more?

This was a free chapter of my 'S.O.L.I.D. design principles with Python' course. If you like my style of teaching, you can support me by enrolling in the online course.

Written by Loek van den Ouweland on 2021-07-12.
Questions regarding this artice? You can send them to the address below.