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
Q12: For which of the following would polymorphism
Q13: Which of the following is false?
A) You
Q14: Which of the following could be used
Q15: Consider classes A, B and C, where
Q16: Which statement best describes the relationship between
Q18: Classes and methods are declared final for
Q19: All of the following methods are implicitly
Q20: Consider the abstract superclass below:
public abstract
Q21: Which of the following statements is false?
A)
Q22: Which of the following statements is false?
A)
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