I know that this is probably a pointless question because it is obvious that class BASE
does not have a function called pass_A
, it is actually declared in another class called A
and I though that using inheritance and polymorphism would allow the BASE
class to see itself and the object of type A
. I definitely want an object of type A
to be able to call the class A
from within BASE
as well as BASE
being declared the way it is now in init_BASE
. My ultimate question is is this possible? Maybe I'm not using virtuals or something else is wrong.
What I want is for the object POLY_TYPE
to be able to contain both BASE
and A
class types.
Anyways heres the error message and the code below it.
EDITED Look at solution instead.