What is a private constructor? where will you use it?
Answer Posted / nitesh
When we want to control the object instantiation
or trying to implement singleton pattern
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
How do you read an Excel sheet in C#?
Can a struct be null?
What is interface c#?
What is the namespace for datatable in c#?
Is comparator a functional interface?
Which sorting algorithm is best?
What is default class in c#?
What is a collection class in c#?
What is the difference between function and method in c#?
What is difference between string and stringbuilder in c#?
What is delegates in c#?
What is the difference between dynamic type variables and object type variables in c#?
What is the difference between var and dynamic types in c# 4.0?
Can list contain duplicates c#?
How do I port "synchronized" functions from visual j++ to c#?