P
Praveen
Hi..All,
Can someone please explain me this
"Access to protected members of the superclass would also be permitted
via any references of subclasses. The above restriction helps to ensure
that subclasses in package different from their superclass can only
access protected members of the superclass in their part of the
inheritance hierarchy".
Why is this restriction for class in a different package extending a
class from a different package?
This is from Khalid A Mughal's book.
Regards,
P
Can someone please explain me this
"Access to protected members of the superclass would also be permitted
via any references of subclasses. The above restriction helps to ensure
that subclasses in package different from their superclass can only
access protected members of the superclass in their part of the
inheritance hierarchy".
Why is this restriction for class in a different package extending a
class from a different package?
This is from Khalid A Mughal's book.
Regards,
P