hi,all
since we had to override a concrete method in an abstract class ,why java language do not forbid concrete method in abstract class , all using abstract method?
Printable View
hi,all
since we had to override a concrete method in an abstract class ,why java language do not forbid concrete method in abstract class , all using abstract method?
Not sure I understand the question.
Do you have an example?
Because the way the question sounds at the moment is that if I have:
you seem to think that extending that class will force you to override the someMethod, even though it's not abstract. Which isn't true.Code:public abstract class Test {
public void someMethod() {
}
}