Is it necessary that all the abstract methods must be defined from an abstract class?

Is it necessary that all the abstract methods must be defined from an abstract class?
A. Yes, depending on code
B. Yes, always
C. No, never
D. No, if function is not used, no definition is required
 
Answer: b
Explanation: That is the rule of programming language that each function declared, must have some definition. There can’t be some abstract method that remains undefined. Even if it’s there, it would result in compile time error.
 

Tìm kiếm

Back
Top