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.
d. None of the above.
You might also like to view...
Explain the difference between a nonrepeatable read and a phantom. Specifically, give an example of a schedule of the SQL statements of two transactions that illustrate the two cases. Specify an isolation level in each case.
What will be an ideal response?
What will be output from the following code:
Which is a valid variable name?
A. Spider!Man B. Sp1d3rM4n C. _Spider Man D. 5p1d3rM4n
The columnar layout displays data in a spreadsheet view
Indicate whether the statement is true or false