A simple example of the Open/Closed Principle(joelabrahamsson.com)
submitted by
webpoet(415) 1 year, 10 months ago
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.
|category: Patterns
|Views: 34
tags:
Patterns another
Everyones tags:
Your Tags: