+91-85006-22255
Which of the following classes fail to compile?
abstract class X { abstract void method(); }abstract class Y extends X { }class Z extends Y { void Method() { System.out.println("Class Z"); } }
Topic: Rules For Abstract Methods and Abstract Classes
Read this topic Take test on this topic
Open In App