Python, Programming, Data Science, Artificial Intelligence, Data.
software entities (classes, modules, functions, etc.) should be open for extension but closed for modification. In other words, we should be able to extend the behavior of a class without modifying its existing code. Here’s an example that violates the OCP: #Code by github.com/tushar2704 class