Hi
I have a question regarding runtime polymorphism.
I have for example
derived A;
base *B;
and I do this
B=&A;
if A goes out of scope does this mean the pointer B is a bad pointer meaning it does not point to anywhere? If so, does this mean I still need to have somewhere in my program an instance of class derived?
thanks