E
e-mid
i have a class, lets say myclass and 2 derived classes(derived1, derived2)
from myclass. i do the following:
myclass a;
then i will instantiate according to user choice.
a = new derived1( );
or
a = new derived2( );
but i can not reach the members of derived1 or derived2 using the object a.
what should i do?
from myclass. i do the following:
myclass a;
then i will instantiate according to user choice.
a = new derived1( );
or
a = new derived2( );
but i can not reach the members of derived1 or derived2 using the object a.
what should i do?