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 / guest
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 ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the different types of constructors in c#?
What is cache memory in c#?
What is thread life cycle in c#?
what is virtual method in c#?
Why is xml called extensible?
Can int be null in c#?
Why do we need constructor in c#?
Why do we use void in c#?
What happens when thread sleep () method is called?
Is it possible to have a static indexer in c#?
How do I count the length of a string in c#?
What is xml serialization in c#?
What is difference between string and stringbuffer in c#?
What is c# best for?
Can we extend sealed class in c#?