1 Answers
The ambiguity occurs when a function with the same name appears in more than one base class or appears in both base and derived class.
Class M
{
public:
void display() {cout<<“\n class M”;}
};
class N
{
public:
void display() { cout << “\n class N”; }
};
class P : public M, public N