Question
Where and how can you use a private constructor?
Answer
Private constructor is used if you do not want other classes to instantiate the object and to prevent subclassing.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.