M Krishnan wrote
How come it is 9 and not 3 eventhough tq is pointing to DerivedQ48 ?
variable refered depends on Reference Type (prints 9)
methods that can be called depends on Reference Type (To call echoN cast was necessary)
method called at runtime depends on the Object Type.
[ May 01, 2007: Message edited by: swarna dasa ]