Back to Browse

The Open-Closed principle. An example in Python

1.3K views
Apr 15, 2023
6:11

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

Download

1 formats

Video Formats

360pmp47.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

The Open-Closed principle. An example in Python | NatokHD