✏️ Explanatory Question

Where and how can you use a private constructor?

👁 603 Views
📘 Detailed Answer
💡

Answer with Explanation

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