Menu
Question Index
...

Which of the following classes fail to compile?

class X { abstract void method(); }
abstract class Y extends X { }
class Z extends Y { void method() { } }


X, Y, Z
Y
Z
X
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