A protected member of a class may be directly accessed by __________.
A) methods of the same class
B) methods of a subclass
C) methods in the same package
D) Any of these
Correct Answer:
Verified
Q27: If you don't provide an access specifier
Q28: _ tells the Java compiler that a
Q29: In an inheritance relationship _.
A) the subclass
Q30: When an "is a" relationship exists between
Q31: In a class hierarchy _.
A) the more
Q33: The _ key word is used to
Q34: All fields declared in an interface _.
A)
Q35: In _, inheritance is shown with a
Q36: A subclass can directly access _.
A) only
Q37: A subclass may call an overridden superclass
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