C++ Method overriding when there are two functions of same name , one in base class and one in derived class, and when you call th…