Menu
Question Index
...

Which of the following classes fail to compile?

abstract class X { abstract void method(); }
class Y extends X { }
class Z extends Y { void method() { System.out.println("Class Z"); } }


X, Y, Z
Y, Z
Y
Z
All classes compile

Doubts

Problems

Topic: Rules For Abstract Methods and Abstract Classes

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App