method C.getFoo() implements method B.getFoo().