Error!
Success!

A simple example of the Open/Closed Principle

0
kicks

A simple example of the Open/Closed Principle  (Unpublished)

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.


Kicked By:
Drop Kicked By: