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 datasource c#?
Why do we use dictionary in c#?
How does array sort work?
Explain different properties of object oriented systems.
Perfect Example Of While And Do-While Loop In C#.Net ?
How do you escape in c#?
Why do we use reflection in c#?
Is c# good for games?
In .NET which is the smallest unit of execution?
What is a factory in c#?
Explain dataadapter.update method in .net?
Can you have more than one namespace in c#?
Which operator cannot be overloaded in c sharp?
What is expression tree in c#?
Explain namespaces in c#.