Menu
Question Index
...

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(){}
}


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