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
What is helper method in c#?
What is parsing? How to parse a date time string?
explain the features of static/shared classes.
how to implement a web service in .net
Which is faster dictionary or list?
Does c# support try-catch-finally blocks?
Define method overloading in c#?
Explain how to implement an object pool in c#.net
What is _viewstart cshtml?
What is the difference between abstract and virtual?
Why delegate is used in c#?
What is marshalling and what are different kinds of marshalling?
Is lazy t thread safe?
Define multicast delegate? How it be used?
What is ildasm and obfuscator in net?