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

Posted by Itfunda under ASP.NET category on | Points: 350 | Views : 520
Want to learn C# start from this video https://www.youtube.com/watch?v=yh2SrzCkNQA
This is one of those c# (Csharp) 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.
For more such videos visit http://www.questpond.com

Get Questpond videos on discounted price from ITFunda.com.

Comments or Responses

Login to post response