Yes, they need to receive the base argument type, and, what's important, probably you want it by reference. Passing the argument by value instead will compile but "slice" the derived argument type into the base argument type. It will be the true base argument type -- all member functions, even those which are overridden in the derived argument, will be of the base argument.
↧