Multiple Choice
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
Correct Answer:
Verified
Q1: When one object is a specialized version
Q25: What is wrong with the following code?
Q31: Given the following code which of the
Q31: Look at the following code: Line 1
Q33: Look at the following code.What is missing
Q48: Which of the following statements correctly specifies
Q55: Which of the following statements declares Salaried
Q59: Look at the following code. Which line
Q60: It is not possible for a superclass
Q65: If a superclass does not have a