You should be able to extend a class’s behavior without modifying it.
Again, a small linguistic jump has to be made from the name of the principle to its explanation: a unit of code can be considered “open for extension” when its behavior can be easily changed without modifying it. The fact that no actual modification is needed to change the behavior of a unit of code makes it “closed” for modification.
It should be noted that being able to extend a class’s behavior doesn’t mean you should actually extend that class by creating a ...