class Test { interface Printer { void foo(); } abstract class AbstractPrinter implements Printer { @Override public void foo() { } } }