Which of the following is TRUE about protected access?
A) Protected members may be accessed by methods in the same package or in a subclass, even when the subclass is in a different package.
B) Protected members may be accessed by methods in the same package or in a subclass, but only if the subclass is in the same package.
C) Protected members cannot be accessed by methods in any other classes.
D) Protected members are actually named constants.
Correct Answer:
Verified
Q12: In an inheritance relationship, the subclass constructor
Q14: If two methods in the same class
Q15: It is not possible for a superclass
Q17: All methods in an abstract class must
Q20: A compiler error will result if an
Q55: Look at the following code: Line 1
Q57: Which of the following is an example
Q58: Which of the following statements correctly specifies
Q59: Look at the following code: Line 1
Q62: An abstract class is not instantiated, but
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents