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
Why do we use interface in c#?
What do you mean by directing?
What is data binding with example?
What is object type in c#?
What is the namespace for the thread class?
Is c# a keyword?
Is c# an open source language?
Name the method of servicebase class?
What is a must for multitasking
What are the concepts of dispose method?
Differentiate between object pooling and connection pooling in c#?
What is the difference between virtual and override in c#?
What is inumerable?
Who is a accessibility modifier “protected internal†available to ?
What is the extension of c# file?