Override a member function with different return type
Overriding essentially means that either the Base class method or the Derived class method will be called at run-time depending on the actual object pointed by the pointer. It implies that: i.e: Every place where the Base class method can be called can be replaced by call to Derived class method without any change to … Read more