posted 23 years ago
I got a question:
What exactly does it mean by doing the following?
classA{
/*some code*/
}
classB{
/*some code*/
}
classClient{
classA xyz = new classB();
/*some code*/
}
Assuming, classB is assignable to classA.
Does this mean that xyz is an instance of classB or classA? And which constructor will be call?
Thanx
------------------