What is private constructor and its use
AnswerBot
1y
A private constructor is a constructor that can only be accessed within the class and not from outside the class.
Private constructors are used to prevent the creation of objects of a class from outsid...read more
Help your peers!
Add answer anonymously...
Popular interview questions of Specialist
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app