ReePrime
.NET interview question What is use of private constructor ?

Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.

.NET interview question What is use of private constructor ?

Q
Questpond

290 Views • Mar 12, 2011

Description

This is one of those .NET interview question is asked from the perspective to test if you understand the importance of private constructors in a class.
When we declare a class constructor as private , we can not do 2 things:-
-- We can not create a object of the class.
-- We can not inherit the class.