13. The following code segment shows an abstract method defined in the super class: public abstract int calculateMarks ( int| ] student ) ; Which of the following is required in sub class? A. public abstract int calculateMarks (int[] student) ( . - ) B. public int calculateMarks (ine() student) ( . ... C. public double calculateMarks (intl] student) D. public int calculateMarks (double(] student)

Computers

Question
13. The following code segment shows an abstract method defined in the super
class:
public abstract int calculateMarks ( int| ] student ) ;
Which of the following is required in sub class?
A. public abstract int
calculateMarks (int[] student) ( . - )
B. public int calculateMarks (ine() student) ( . ...
C. public double calculateMarks (intl] student)
D. public int
calculateMarks (double(] student)
Answer

A. public abstract int calculateMarks (int[] student).

Download to view full explanation
A. is the correct answer because an abstract method must be implemented in the sub class with the same signature as the one defined in the super class...
Solve any homework question FREE with our app, NO PAYMENT required!