public class MainClass{ public static void main(String[] argv){ MyInterface my = new MyClass(); System.out.println(); } } interface MyInterface{ public void aMethod(); } class MyClass implements MyInterface{ public void aMethod(){ } }