1.

What Is Protected Access Modifier?

Answer»

Variables, METHODS and constructors which are declared protected in a superclass can be ACCESSED only by the subclasses in other package or any CLASS within the package of the protected MEMBERS' class.

Variables, methods and constructors which are declared protected in a superclass can be accessed only by the subclasses in other package or any class within the package of the protected members' class.



Discussion

No Comment Found