I am trying to create a new class in my program which is being extended from two inbuilt classes in a framework.
class Node{
setPosition();
draw();
};
class Rectangle{
setPosition();
draw();
};
class CustomShape : public Node, public Rectangle{
};
In main program, if I try to write something like CustomShape a
and
a.setPosition();
a.draw();
I get compile time errors with ambiguous calls. How can I resolve this?