3 ms·
> Virtual member functions are what corresponds to OOP methods. So C++ has methods. > If you use derived objects as their actual derived type (not through a b
by rootlocus 11y ago
> Virtual member functions are what corresponds to OOP methods.
So C++ has methods.
> If you use derived objects as their actual derived type (not through a base reference), then you're using those functions
I can use objects through a reference to derived, which still requires dynamic dispatch.
> Identifiers declared in the derived class scope simply shadow like-named definitions in base classes, period. That is regardless of access.
Which is a hack.