1 2 3 4 5 6 7 8 9 10
@FunctionalInterface interface Base { default void foo() { System.out.println("Hi there."); } } class Child implements Base { public abstract void bar(); }