Multiple Choice
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
Correct Answer:
Verified
Q18: A protected member of a class may
Q19: Look at the following code and determine
Q20: What is wrong with the following code?<br>Public
Q21: If you do not provide an access
Q24: In the following statement, which is the
Q25: Given the following code which of the
Q26: Look at the following code. Which line
Q27: In an inheritance relationship, the subclass constructor
Q27: When a method is declared with the
Q28: In an interface all methods have:<br>A) private