Hello all,

        I am a little bit confused with the concept of inheritance. In
the lecture provided for Lab 1023,
in slide 9
"If the subclass is in the same package as its parent it also inherits
the package-private members (fields
or methods) of the parent"

and in slide 10

"A subclass does not inherit the private members of its parent class.
However, if the super class has public or protected methods for
accessing its private fields, these can also be used by the subclass."

I guess child class doesn't inherit the private member of the parent
class then what does  this potion means "subclass is in the same
package as its parent it also inherits the package-private members".
Cheers

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to