Development

© examsiri.com
Question : 13 of 17
 
Marks: +1, -0
Given three files:
package xcom;
public class A {
  /* insert code here*/
}
package xcom;
public class B extends A {public void doB() { System.out.println("B.doB"); } }
import xcom.B;
class TestXcom {
  public static void main(String[] args) {
   B b = new B(); b.doB(); b.go();
  }
}

Which, inserted at // insert code here will allow all three files to compile? (Choose all that apply.)
Go to Question: