What is a private constructor? where will you use it?
Answer Posted / dsr
private constructor access only that class. we can't access
in other class.we can use the private constructor in
singleton patteren.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the different approaches of passing parameters to a method?
What is immutable in C#?
What is difference between yielding and sleeping?
What is ienumerable t in c#?
How can you access a private method of a class?
What is a framework in c#?
How objects are stored in memory?
Perfect Example Of While And Do-While Loop In C#.Net ?
what is the difference between a struct and a class in c#?
Is c# a technology?
What does typeof return c#?
What you mean by delegate in c#?
Is c# used for any core features of windows vista?
What basic steps are needed to display a simple report in crystal?
What is tpl in c#?