If ClassA extends ClassB, then:
A) public and private members of ClassB are public and private, respectively, in ClassA
B) public members in ClassB are public in ClassA, but private members in ClassB cannot be directly accessed in ClassA
C) neither public or private members in ClassB can be directly accessed in ClassA
D) private members in ClassB are changed to protected members in ClassA
Correct Answer:
Verified
Q13: Look at the following code. Which line
Q15: When a subclass overloads a superclass method:
A)
Q16: What key word can you use to
Q17: Look at the following code and determine
Q19: When a method is declared with the
Q20: Which of the following statements declares Salaried
Q21: Look at the following code. The method
Q22: Look at the following code. Which line
Q23: Look at the following code. Line 1
Q55: If a subclass constructor does not explicitly
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