How can I call a base class method which is overridden by the derived class, from a derived class object?
class Base{ public: void foo(){cout<<\"
An important [additional] note: you will still have compilation errors if Name Hiding occurs.
In this case, either utilize the using keyword, or use the qualifer. Additionally, see this answer as well.
#include class Base{ public: void foo(bool bOne, bool bTwo){std::cout<<"base"<