▲ | motorest 11 hours ago | |
> The defining characteristic of implementation inheritance is open recursion. Recursion does not register as a concern in inheritance or polymorphism. > When you call a "member function declared in a parent class" there's no telling what code will actually be run, because that member function may have been overridden at any point in the class hierarchy. This is a feature, and a valuable one. You don't care what your parent class is doing. Your concern is that you want to extend it, and that's it. > By contrast, these issues can be managed when (...) You didn't pointed any issues. Also, composition addresses any concern you might have. You're searching for problems that fit a solution, and so far you pointed no problem. |