User Profile
Collapse
-
sarbhatt replied to Can a poninter of base class hold object of class derived from the derived classin CThanks for the reply. -
sarbhatt started a topic Can a poninter of base class hold object of class derived from the derived classin CCan a poninter of base class hold object of class derived from the derived class
I have a question, in multilevel inheritance:
Class Base
{
};
Class derv1:public Base
{
}
Class derv2:public derv1
{
}
Is ptrBase = &objderv2; valid?
If yes, then if we have virtual method in Base class will VTABLE of granchild(derv2 ) class have function address of this virtual method?
Thanks
No activity results to display
Show More
Leave a comment: