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 difference between a function and a method?
What is constants in c#?
What is .edmx file?
Compare and contrast between the System.Array.CopyTo() and Clone()?
Why interface is required?
Explain About Virtual functions and their use.
Explain the term inheritance in C#.
What is the difference between ref & out parameters in c#?
Where do we use serialization in c#?
Why we use anonymous methods in c#?
Explain the differences between static, void and public in c#?
Why c# is type safe?
What is access specifier in c#?
What is the solution if you need to manipulate sets of items?
Can I fly with a loop recorder?