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 / venu gopal
Two. Once you write at least one constructor, C# cancels the
freebie constructor, and now you have to write one yourself,
even if there?s no implementation in it
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is dapper in c#?
What is a hash table in c#?
What is private variable?
Explain About Virtual functions and their use.
Major difference between Basic httpbinding and WShttpbinding?
What is constants in c#?
Do events have return type c#?
What is data binding with example?
What is gridview c#?
How many constructors can a class have in c#?
Is arraylist type safe in c#?
How can you reference current thread of the method ?
Is c# slower than java?
What is ac callback?
What is variable and its classification?