2
Answers

Private constructor vs abstract class

Ask a question
Pooja Sharma

Pooja Sharma

14y
8.5k
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)