Which of the following classes fail to compile? abstract class X { abstract void method(); void method(int i); } abstract class Y { abstract void method(); abstract void method1(); } abstract class Z { abstract void method(){} } code example
Example: is it necessary for abstract class to have abstract method
No, abstract class can have zero abstract methods.