@Override causes issues with class hierarchy involving interface, abstract class and concrete class
- by Nayn
Hi,
My classes are as follows
public interface A {
public void doSomething();
}
public abstract class B implements A {
public void doOneMoreThing() {
// Do one more thing
}
}
public class C extends B {
@Overrides <---- Causes error
public void doSomething() {
// Do something
}
}
Could somebody tell me, why this @Overrides annotation is causing error?
Thanks
Nayn