Exit Full View

Feather2 / feather2-javaexamples / src / main / java / compareInterface / ImplementationBar.java

package compareInterface;

/**
 * See CompareInterfaceMethod
 */
class ImplementationBar implements InterfaceFoo {

    int theBase;

    public ImplementationBar(int theBase) {
        this.theBase = theBase;
    }

    @Override
    public int plusTwo() {
        return theBase + 2;
    }
}