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 original Method 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.

Computer Science & Information Technology

You might also like to view...

What is the error in the following code if its purpose is to add five numbers entered by the user?

int x, sum; for ( int c = 0; c < 5; c++) { cout << “Next number\n”; cin >> x; sum = sum + x; }

Computer Science & Information Technology

answer the question below:

(a)





(b)








Computer Science & Information Technology

____ storage stores data in a durable, erasable, low-power chip.

A. Optical B. Laser C. Magnetic D. Solid-state

Computer Science & Information Technology

Identity theft is when someone poses as you, using your name, Social Security number, or other personal information fraudulently

Indicate whether the statement is true or false

Computer Science & Information Technology