public interface Father { public void go(); } public interface Mother { public void go(); } class Test implements Father, Mother { // line 1 @Override public void go(){ // line 2 System.out.println("Child"); } public static void main(String args[]) { new Test().go(); // line 3 } }
public void go();
}
public interface Mother {
class Test implements Father, Mother { // line 1
@Override
public void go(){ // line 2
System.out.println("Child");
public static void main(String args[]) {
new Test().go(); // line 3
Oracle Certified Professional Java Programmer
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.