3 ms·
I've found that inheritance works best if it is planned ahead, but that's not always how it was "sold" in OOP-promoting materials. Maybe the tacit idea here is
by kazinator 3y ago
I've found that inheritance works best if it is planned ahead, but that's not always how it was "sold" in OOP-promoting materials.
Maybe the tacit idea here is that if you start using inheritance right in your design document, where OOP pseudo-code gives detailed requirements, then due to all that forward thinking and planning, good use of inheritance will pop out in the actual product.
It's related to how reuse of any kind has to be planned for best results. Code not intended for reuse will not always reuse well, and that includes classes being reused via inheritance.