2
Answers

Private constructor vs abstract class

Photo of Pooja Sharma

Pooja Sharma

15y
13.8k
1
Hi,

A class cannot be instantiated when it has Private constructor. Abstract class also serve the same purpose. Then, What is the difference between abstract class and a class with private constructor?


Answers (2)