Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / nilesh chaudhari

Compiler will provide the default constructor when you not
writing any constructor then only. Otherwise if you writes
any parameterized constructor then you have to explicitly
mentioned default constructor because this condition
Compiler will not provide the default constructor.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which types of inheritances does c# support?

912


What is out int in c#?

917


explain the nature of the assembly work?

2561


What is the process of Serialization?

1003


Can hashtable have duplicate keys?

920


What is a byte in c#?

991


What is default method in c#?

1044


What is the difference between overriding and overloading in systemverilog?

1006


How is a string immutable?

923


what is the difference between .dll and .exe

1050


Can I call a virtual method from a constructor/destructor?

894


Between windows authentication and sql server authentication, which one is trusted and which one is untrusted?

982


What is data binding c#?

950


Is lazy thread safe c#?

885


What is session management in c#?

972