3 ms·
> Open-Closed: A class should be open for extension, but close to modification I hate when people do this. Closing class for modification is very easy, but ope
by scotty79 10y ago
> Open-Closed: A class should be open for extension, but close to modification
I hate when people do this. Closing class for modification is very easy, but opening it for extension requires predicting the future, which is impossible. Which coupled with being closed to modification destroys re-usability.