
Keith B. answered 09/06/19
Software Engineer and Math Geek
First, in the derived class Bar, but not declaring printStuff() virtual as in the base class, this results in the base class's method being hidden. Next, to call a method in the base class, use the class operator:
Lastly, the joy of inheritance -- if your derived class is only calling the base class, don't declare it. The derived class inherits all the methods and elements of its base class, and you only need to override the methods you want. Everything else comes from the base class.