Multiple choice technology programming languages

What are the features of an abstract class?

  1. It contain instance variables

  2. It contain constructors

  3. It may extend another class

  4. All of the these

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Abstract classes in object-oriented programming can contain instance variables (fields), can have constructors (used by subclasses), and can extend another class (single inheritance). Therefore, all three statements A, B, and C are correct features of abstract classes.