Pointers to derived classes.
I declare class 1. Class 2 is derived (publicly) from class 1. If I have a pointer to an instance of class 1, can I initialize it to the address of an instance of type class 2?
How is this dealt with when dealing with mulitple inheritance? Friend functions?
More specificness... if that's a word.
By that I meant, could I use the pointer if class 2 was derived from class 1, AND class 3 (multiple inheritance), and what if class 2 was declared as a friend of class 1 (the friend function thing).
Thanks for the help.