Which among the following is true?

Giao Linh

New member
Which among the following is true?
A. Abstract methods can be static
B. Abstract methods can be defined in derived class
C. Abstract methods must not be static
D. Abstract methods can be made static in derived class
 
Answer: c
Explanation: The abstract methods can never be made static. Even if it is in derived class, it can’t be made static. If this happens, then all the subsequent sub classes will have a common definition of abstract function which is not desirable.
 

Tìm kiếm

Back
Top