Given:
interface DoStuff2 {
float getRange(int low, int high);
}
interface DoMore {
float getAvg(int a, int b, int c);
}
abstract class DoAbstract implements DoStuff2, DoMore {
}
06. class DoStuff implements DoStuff2 {
07. public float getRange(int x, int y) {
08. return 3.14f;
09. }
10. }
11.
12. interface DoAll extends DoMore {
13. float getAvg(int a, int b, int c, int d);
14. }
What is the result?
A.
The file will compile without error.
B.
Compilation fails. Only line 7 contains an error.
C.
Compilation fails. Only line 12 contains an error.
D.
Compilation fails. Only line 13 contains an error.
E.
Compilation fails. Only lines 7 and 12 contain errors.
F.
Compilation fails. Only lines 7 and 13 contain errors.
G.
Compilation fails. Lines 7, 12, and 13 contain errors.
Explanation:
A