Ask Question
1 October, 06:43

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.

+4
Answers (1)
  1. 1 October, 06:54
    0
    d. None of the above.

    Explanation:

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “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 ...” in 📘 Biology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers