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?

Answers were Sorted based on User's Feedback



7. C# provides a default constructor for me. I write a constructor that takes a string as a parame..

Answer / 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

7. C# provides a default constructor for me. I write a constructor that takes a string as a parame..

Answer / 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

More C Sharp Interview Questions

What is a property in c#?

0 Answers  


How can you prevent classes to be inherited?

10 Answers   Microsoft, Satyam,


Can we change static value in c#?

0 Answers  


What namespaces are necessary to create a localized application?

1 Answers  


Explain the working of serialization?

0 Answers  


Wats the diff between sealed class and private class in inheritance

7 Answers   iSoft,


Explain how do I convert a string to an int in c#?

0 Answers  


Can you access a hidden base class method in the derived class?

0 Answers  


In Main function another function is there and to that function if we pass string as parameter ,then that string value is passed by value or reference type?

4 Answers   Honeywell,


What is the difference between an implicit conversion and an explicit conversion?

0 Answers  


Explain About .Net remoting

0 Answers   Digital GlobalSoft,


If dll and exe files are same it means you can deploy both the files in gac?

0 Answers  


Categories