It is _________________________ to have an abstract method.

Bảo Vy

Member
It is _________________________ to have an abstract method.
A. Not mandatory for an static class
B. Not mandatory for a derived class
C. Not mandatory for an abstract class
D. Not mandatory for parent class
 
Answer: c
Explanation: Derived, parent and static classes can’t have abstract method (We can’t say what type of these classes is). And for abstract class it’s not mandatory to have abstract method. But if any abstract method is there inside a class, then class must be abstract type.
 

Tìm kiếm

Back
Top