--------------------- package com; public interface myinter01{ public abstract int add(int x,int y); } //*********************************** package com; public interface myinter02 extends myinter01 { public abstract int subtract(int x,int y); } //************************************ package com; public interface myinter03 extends myinter01, myinter02 { } //************************************ package com; public class test implements myinter03, myinter01 { @Override public int add(int x, int y) { // TODO Auto-generated method stub return 0; } @Override public int subtract(int x, int y) { // TODO Auto-generated method stub return 0; } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub new test().add(3, 4); } }