7. C# provides a default constructor for me. I write a
constructor that takes a string as a parameter, but want to
keep the no parameter one. How many constructors should I
write?
Answer Posted / nilesh chaudhari
Compiler will provide the default constructor when you not
writing any constructor then only. Otherwise if you writes
any parameterized constructor then you have to explicitly
mentioned default constructor because this condition
Compiler will not provide the default constructor.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How much time will it take to learn unity?
What types of object can I throw as exceptions?
What is array class in c#?
What is c# in asp net?
Why do we need to serialize data?
Difference between debug.write and trace.write?
What is lazy t?
Can we have multiple threads in one app domain?
What are the different types of assembly?
Please explain value types and reference types used in c#?
List down the reason behind the usage of c# language.
What do you mean by sealed classes and static classes?
Why ref is used in c#?
What are managed providers?
What do you mean by the delegate in c#?