A
ankur
So I am a Java newbie and have a simple question here:
protected methods of a superclass are inheritable by the subclass. So
how come the protected methods of Object class namely clone and
finalize not inherited by every class by default ie why is overriding
for these methods necessary in the class which wants to use these
methods and not accessed directly.
Thanks,
Ankur
protected methods of a superclass are inheritable by the subclass. So
how come the protected methods of Object class namely clone and
finalize not inherited by every class by default ie why is overriding
for these methods necessary in the class which wants to use these
methods and not accessed directly.
Thanks,
Ankur