Multiple choice

A class that cannot be instantiated is known as

  1. virtual class

  2. friend class

  3. abstract class

  4. derived class

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

An abstract class is a class that cannot be instantiated or in other words, it cannot be used to create an object. Since object declaration of such a class is not allowed, the only way to access its members is through inheritance. We can declare a child class of the abstract class and call the members of the class. To declare a class as abstract, we must declare a 'Pure Virtual Function' in it.