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 syntax 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
Q1: A(n)_class cannot be instantiated.
A) final.
B) concrete.
C) abstract.
D)
Q2: Polymorphism enables you to:
A) program in the
Q3: Polymorphism allows for specifics to be dealt
Q6: An interface may contain:
A)private static data and
Q9: Which of the following statements about abstract
Q10: For which of the following would polymorphism
Q13: When a superclass variable refers to a
Q14: All of the following methods are implicitly
Q16: Which statement best describes the relationship between
Q18: Classes and methods are declared final for
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