Menu
Question Index
...

Which program(s) is/are valid?

Program 1:
abstract class A
{
    abstract void method1();

    abstract void method2() {}

}
Program 2:
abstract class A
{
    abstract void method1();

    void method2() {}

}


Program 1 is valid
Program 2 is valid
Both programs are valid
Both programs are invalid

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