295 Views
The Open/Closed Principle says that we should strive to write code that doesn’t have to be changed every time the requirements change. When using Java, C# or other statically typed languages the solution often involves inheritance and polymorphism, which is what this simple example illustrates.
0 comments