Menu
Question Index
...

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"); } }


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