Question: Identify and correct errors. If there are no error just write correct. For questions 1 6 , consider the following two classes C , D
Identify and correct errors. If there are no error just write correct.
For questions consider the following two classes C D and interface I
public abstract class C
private void foo
System.out.printlnHello foo;
public abstract void foo;
public abstract int foo;
public class D extends C
public void foo
System.out.printlnHello foo;
public int foo
return ;
private void foo
System.out.printlnHello D foo;
C c new C;
D d new D;
dfoo;
C c;
c new D;
public interface J extends I
public class K public void foo;
public class E extends D
public void foo;
super.foo;
System.out.printlnHello E foo;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
