2. What is an abstract class ?

A. A class that has direct instances, but whose descendants may have direct instances
B. A class that has direct instances, but whose descendants may not have direct instances
C. A class that has no direct instances, but whose descendants may have direct instances
D. All of the mentioned
✅ The correct answer is option C.
Explanation: An abstract type is a type in a nominative type system which cannot be instantiated directly.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top