Question: Which is the first line to fail to compile? A. r1 B. r2 C. r3 D. r4 E. r5 F. None of the above class
Which is the first line to fail to compile?

A. r1
B. r2
C. r3
D. r4
E. r5
F. None of the above
class Tool { } private void repair() {} void use() {} } // r1 // r2 class Hammer extends Tool { private int repair() { return 0; } // r3 private void use () {} // r4 public void bang() {} // r5
Step by Step Solution
3.38 Rating (164 Votes )
There are 3 Steps involved in it
The code snippet shown in the image depicts two classes Tool and Hammer The Hammer class is a subcla... View full answer
Get step-by-step solutions from verified subject matter experts
