When declared as protected, which statement is true about the access to data in an object?
A) The data is accessible only by that class's methods and by all of its subclasses
B) The data is accessible only by that class's methods, by all of its subclasses, and by methods in classes within the same package.
C) The data is accessible only by that class's methods.
D) The data is accessible by any class.
Correct Answer:
Verified
Q69: Consider the following class hierarchy:
Q70: The term for a class from which
Q71: Consider the following code snippet:
Q72: In designing an inheritance hierarchy it is
Q73: What reserved word in a class definition
Q75: Consider the following code snippet:
Q76: Which of the following is true regarding
Q77: Suppose the abstract class Message is defined
Q78: Consider the following code snippet:
Q79: Which of the following statements about classes
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