Look at the following code.The method in line _______ will override the method in line _______. Line 1 public class ClassA
Line 2 {
Line 3 public ClassA() {}
Line 4 public int method1(int a) {}
Line 5 public double method2(int b) {}
Line 6 }
Line 7 public ClassB extends ClassA
Line 8 {
Line 9 public ClassB() {}
Line 10 public int method1(int b,int c) {}
Line 11 public double method2(double c) {}
Line 12 }
A) 10,4
B) 11,5
C) Both a and b
D) None of the above
Correct Answer:
Verified
Q6: What is wrong with the following code?
Q6: If you do not provide an access
Q8: In UML diagrams, inheritance is shown:
A) With
Q10: Given the following code which of the
Q20: Which of the following statements declares Salaried
Q23: Look at the following code. Line 1
Q30: Look at the following code. Line 1
Q36: All fields declared in an interface:
A) are
Q37: If a class contains an abstract method:
A)
Q38: Look at the following code. Which line
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents