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


Please Help Members By Posting Answers For Below Questions

What is datasource c#?

488


Why do we use dictionary in c#?

495


How does array sort work?

498


Explain different properties of object oriented systems.

447


Perfect Example Of While And Do-While Loop In C#.Net ?

563






How do you escape in c#?

500


Why do we use reflection in c#?

485


Is c# good for games?

478


In .NET which is the smallest unit of execution?

631


What is a factory in c#?

474


Explain dataadapter.update method in .net?

515


Can you have more than one namespace in c#?

489


Which operator cannot be overloaded in c sharp?

491


What is expression tree in c#?

478


Explain namespaces in c#.

584