Question
What will happen if we make the constructor private?
Answer
We can’t create the objects directly by invoking new operator.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.
What will happen if we make the constructor private?
We can’t create the objects directly by invoking new operator.
📲 Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.