Protected specifier denotes a variable or method as being _______ to subclasses of the parent class.
Answers
Answered by
4
Answer:
Protected specifier denotes a variable or method as being ___interfaces____ to subclasses of the parent class.
Explanation:
extra information
Protected Access Modifier - Protected
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. The protected access modifier cannot be applied to class and interfaces.
Protected Access Modifier - Protected
Similar questions