Hello,
I am having trouble understanding
Java reference variable casting. Could anybody please explain me the concept.
Also, please see the below example:
Output from above code:
In callme of Dog
I was expecting "In callme of Animal". What am I missing?
When I say (classname)referencevariable, what exactly happens?
Thanks in advance for your help.