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...
The ______ of a function take(s) information into the function from the calling program.
a. local variables b. input arguments c. output arguments d. prototype e. purpose
What is a disadvantage of implementing a tree as an array using computed links?
What will be an ideal response?
Discuss each of the tasks of encapsulation, concurrent processing, protection, name resolution, communication of parameters and results, and scheduling in the case of the UNIX file service (or that of another kernel that is familiar to you).
What will be an ideal response?
What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?
What will be an ideal response?