3 ms·
It doesn't sound like such a great alternative to me. The derived class should have maximum flexibility. If I have to struggle with some OOP system where the ch
by kazinator 9y ago
It doesn't sound like such a great alternative to me. The derived class should have maximum flexibility. If I have to struggle with some OOP system where the chain of control is backwards and my derivation gets the control last, I'm just gonna throw my hands up and write my own thing from scratch and not use the inflexible stuff. This end-result is counterproductive, resulting in more work and code duplication.
Or else I will wrap their objects with mine such that mine have new, unrelated methods that do not automatically yield control to those underlying object. My methods will call theirs at any point in the processing that I wish.
Basically, I will get the last word no matter what, so either work with me by giving me a normal OOP system, or I will build detours around you anyway.