Page 1 of 1

About Question enthuware.ocajp.i.v8.2.966 :

Posted: Sat Dec 02, 2017 6:35 pm
by Rinkesh
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.

Re: About Question enthuware.ocajp.i.v8.2.966 :

Posted: Sat Dec 02, 2017 7:28 pm
by admin
Protected members are in addition accessible from subclasses. Package is immaterial.

Default members are accesible from same package. Subclass is immaterial.

Re: About Question enthuware.ocajp.i.v8.2.966 :

Posted: Mon Dec 04, 2017 8:15 am
by Rinkesh
Okay Thanks!