Multiple Choice
Assigning a subclass reference to a superclass variable is safe ________.
A) because the subclass object has an object of its superclass.
B) because the subclass object is an object of its superclass.
C) only when the superclass is abstract.
D) only when the superclass is concrete.
Correct Answer:

Verified
Correct Answer:
Verified
Q24: The UML distinguishes an interface from other
Q25: Consider the abstract superclass below: <br>public abstract
Q26: Which of the following statements is false?<br>A)
Q27: Aclass that implements an interface but does
Q28: Every object in Java knows its own
Q29: Which of the following does not complete
Q30: Polymorphism allows for specifics to be dealt
Q31: All of the following methods are implicitly
Q33: Interfaces can have _methods.<br>A) 0<br>B) 1<br>C) 2<br>D)
Q34: Which of the following statements is false?<br>A)