8 ms·
I would consider having any final classes in a standard library to be a failure. One of the pillars of OOP is extensibility.
by Produce 14y ago
I would consider having any final classes in a standard library to be a failure. One of the pillars of OOP is extensibility.
- pjmlp 14y agoThen you should learn about the fragile base class problem, http://www.cas.mcmaster.ca/~emil/Publications_files/MikhajlovSekerinski98FragileBaseClassProblem.pdf http://www.cas.mcmaster.ca/~emil/Publications_files/Mikhajlo... API design is a very complex issue. Any change in a base class can have unintended consequences. Specially in components sold as libraries to development companies, where you as a customer don't have access to the source code. You're right, one of the OOP pillars is extensibility, but inheritance is just one way of doing it.