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 is the difference between arraylist and list in c#?
How to prevent the error while updating ui control from another thread?
What is default value of decimal c#?
What is the difference between disposing of () and finalize() methods in c#?
What is difference between method and function in c#?
What is garbage collector and where should you use in .NET?
Are enums static c#?
Is std :: string null terminated?
Explain the security with aop?
Define multicast c# delegate?
What are verbatim strings in c#?
Major difference between Basic httpbinding and WShttpbinding?
What is immutable in C#?
Can a static class contain non static members?
What are static and dynamic variables?