多项选择题
Given:
Which two code fragments, inserted independently at line 13, will compile?()
A.super(name, baseSalary);
B.this.commission = commission;
C.super(); this.commission = commission;
D.this.commission = commission; super();
E.super(name, baseSalary); this.commission = commission;
相关考题
-
多项选择题
Given: What are four valid examples of polymorphic method calls?()
A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1(); -
单项选择题
Given: What is the result?()
A.peep
B.bark
C.meow
D.Compilation fails.
E.An exception is thrown at runtime. -
单项选择题
Given: Which change can you make to Target without affecting Client?()
A.Line 4 of class Target can be changed to return i++;
B.Line 2 of class Target can be changed to private int i = 1;
C.Line 3 of class Target can be changed to private int addOne(){
D.Line 2 of class Target can be changed to private Integer i = 0;
