June 2017
Beginner
330 pages
7h 30m
English
A dead simple explanation of the open/closed principle is this:
Software elements (classes, modules, functions, and so on) should be open for extension, but closed for modification.
Essentially, this means that you should build your classes in a way that you can extend them via child classes. Once you've created the parent class, it no longer needs to be changed.
The original concept was credited to Bertrand Meyer when he coined the term back in 1988 in his book, Object-Oriented Software Construction, Prentice Hall.
Read now
Unlock full access