c# interview questions :- What is the use of private constructor ?

Add to Favourites
Post to:

Description
This is one of those c# and .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.

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
143 Members Recommend
231 Followers

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect