Members with default accessibility are only accessible within the class itself and from classes in the same package.
Protected members are in addition accessible from subclasses. Members with private accessibility are only accessible
within the class itself.
Protected Members are in addition accessible from subclasses in different package* otherwise there is no difference between default and protected.
About Question enthuware.ocajp.i.v8.2.966 :
Moderator: admin
-
- Posts: 35
- Joined: Sat Nov 25, 2017 4:13 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.966 :
Protected members are in addition accessible from subclasses. Package is immaterial.
Default members are accesible from same package. Subclass is immaterial.
Default members are accesible from same package. Subclass is immaterial.
-
- Posts: 35
- Joined: Sat Nov 25, 2017 4:13 pm
- Contact:
Re: About Question enthuware.ocajp.i.v8.2.966 :
Okay Thanks!
Who is online
Users browsing this forum: No registered users and 22 guests