The Open Closed Principle says: systems should be “open for extension, but closed for modification”. But how can a system change without modification? Does this even make sense?
It does and after watching this video, not only you understand it, you will see it everywhere in your code, because you already know the problem AND solution.
C H A P T E R S
0:48 Example with OC principle violation.
2:20 The problem with switching on class types
3:38 Remove the switches by using Polymorphism
5:12 The benefits of adhering to the open-closed principle
M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of online courses: https://pythonforeveryone.com
#pythonforeveryone #programming #python