interface Foo1 { void foo(); } class Bar implements Foo1 { public void foo() { System.out.println("hello"); } }