How many instances of an abstract class can be created?

By Anjnee Bhatnagar|Updated : June 21st, 2022

How many instances of an abstract class can be created?

  1. 1
  2. 5
  3. 13
  4. 0

Answer: D. 0

0 instances can be created for an abstract class.

Solution:

The answer to the question of how many instances of an abstract class can be created is zero. That is, we cannot create an instance of an abstract class as it does not have any complete implementation. An abstract class acts like a template or an empty structure. For an abstract class in the OOP paradigm, we cannot instantiate it.

☛ Related Questions:

Comments

write a comment

Follow us for latest updates