posted 22 years ago
Hi all,
Chapter 4 of R&H says, object reference conversion is possible when the conversion is up the hierarcy.
My doubt is, how can a superclass class reference hold a subclass reference???
superclass s = subclass p
Sub class would have additional featues than the superclass right..Wouldn't there be loss of information ???
Thanks in advance.
Regards,
Sushma