I have two class A and B and B inherits from A, in the class A I have defined:
in my main I haveCode:A& A::operator=(const B& b){ //some code here }
when I tried to compile all of this it gives an error saying that A needs aCode:A a; B b; a = b;
why????Code:A& A::operator=(const A& a)