Probably the following cannot be done (I am getting a compilation error: \"The inherited method A.doSomthing(int) cannot hide the public abstract method in B\"):
make the method public
public class C extends A implements B { //trying to override doSomthing... public int myMethod(int x) { return doSomthingElse(x); } }
interface methods are always public
public
or just use composition instead of inheritance