Quantcast
Channel: Tom Dalling
Viewing all articles
Browse latest Browse all 12

SOLID Class Design: The Open Closed Principle

$
0
0

This is part two of a five part series about SOLID class design principles by Robert C. Martin. The SOLID principles focus on achieving code that is maintainable, robust, and reusable. In this post, I will discuss the Open Closed Principle.

The Open Closed Principle (OCP): You should be able to extend a classes behavior, without modifying it.


Viewing all articles
Browse latest Browse all 12

Trending Articles