Consider classes A, B and C, where A is an abstract superclass, B is a concrete class that inherits from A and C is a concrete class that inherits from B. Class A declares abstract method originalMethod, implemented in class B. Which of the following statements is true of class C?
A) Method originalMethod cannot be overridden in class C-once it has been implemented in concrete class B, it is implicitly final.
B) Method originalMethod must be overridden in class C, or a compilation error will occur.
C) If method originalMethod is not overridden in class C but is called by an object of class C, an error occurs.
D) None of the above.
Correct Answer:
Verified
Q10: Non-abstract classes are called _.
A) real classes.
B)
Q11: When a superclass variable refers to a
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
Q16: Which statement best describes the relationship between
Q17: Assigning a subclass reference to a superclass
Q18: Classes and methods are declared final for
Q19: All of the following methods are implicitly
Q20: Consider the abstract superclass below:
public abstract
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