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


Please Help Members By Posting Answers For Below Questions

What is the difference between arraylist and list in c#?

458


How to prevent the error while updating ui control from another thread?

503


What is default value of decimal c#?

477


What is the difference between disposing of () and finalize() methods in c#?

544


What is difference between method and function in c#?

470






What is garbage collector and where should you use in .NET?

515


Are enums static c#?

501


Is std :: string null terminated?

492


Explain the security with aop?

652


Define multicast c# delegate?

560


What are verbatim strings in c#?

495


Major difference between Basic httpbinding and WShttpbinding?

581


What is immutable in C#?

592


Can a static class contain non static members?

552


What are static and dynamic variables?

647