hamburger

How many instances of an abstract class can be created?

By BYJU'S Exam Prep

Updated on: September 25th, 2023

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:

Our Apps Playstore
POPULAR EXAMS
SSC and Bank
Other Exams
GradeStack Learning Pvt. Ltd.Windsor IT Park, Tower - A, 2nd Floor, Sector 125, Noida, Uttar Pradesh 201303 help@byjusexamprep.com
Home Practice Test Series Premium