Define ambiguity resolution in inheritance. How can it be performed in C++?
When a derived class has two base classes, base classes have function with the same name. If we want to call same name function of base class by child class then compiler get confused which function it should call. It is called ambiguity resolution in inheritance.
This problem is resolved using scope resolution operator to specify the class in which function lies.
Example: obj.x::show_data();