Can we have private constructor in our class file. When we
are trying to create instance for the class will it create
or throw error regarding that?
Answer Posted / balamurugan
we can create private constructor.it wont throw any
execption..but we cant create object for that class
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is escape character in c#?
Explain the process of inheriting a class into another class?
What is data hiding in c#?
What does dbml mean in texting?
What is iqueryable in linq?
What is the difference between class and namespace?
What is the difference between finalize() and dispose() methods?
What is multithreading with .net?
Does c# support multilevel inheritance?
What is native image generator (ngen.exe)?
What do you mean by streamreader/streamwriter class in c#?
How to add a readonly property in c#.net
What is the purpose of a namespace?
What is console read in c#?
Which program construct must return a value?