✏️ Explanatory Question

Where and how can you use a private constructor?

👁 596 Views
📘 Detailed Answer
596
Total Views
10
Related Qs
0%
Progress
💡

Answer with Explanation

Private constructor is used if you do not want other classes to instantiate the object and to prevent subclassing.