1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
// PR234.java public class PR234 extends B implements I { public static void main(String args[]) { PR234 x = new PR234(); x.m(); } } // B.java class B { public void m() { System.out.println ("yes"); } } // I.java interface I { public void m(); }