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
- 5
- 13
- 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: