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

What's the difference between a method and a procedure?

1026


Can you inherit from multiple classes in c#?

933


can you allow a class to be inherited, but prevent the method from being over-ridden?

1012


Is c# an open source language?

1032


Define thread?

1035


What is console programming language?

1013


Explain async and await?

1932


What is the base class in .net from which all the classes are derived from?

1010


What are the differences between system.string and system.text.stringbuilder classes?

1060


What are the types in c#?

961


What is deadly diamond problem?

1044


Does a loop recorder have to be removed?

1087


What is the difference between finalize() and dispose()?

973


What is disconnected data architecture in c#?

1084


What is a constructor in c#?

1542