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

Define multicast c# delegate?

0 Answers  


How?s the DLL Hell problem solved in .NET?

1 Answers   Visual Soft,


Why do we need static in c#?

0 Answers  


1.write a program in C# to find a given point which is inside in a circle. Given circle's radius and its center point? 2.Write a program in C# to generated 20 prime numbers greater than a given number? (It should be more efficient for large numbers also) 3. Write a Code to check whether a given point is inside a circle or not? given Circle's raduis and its center point. 4. using oops concept, design an elevator do not forget buttons on each floor..

2 Answers  


Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?

0 Answers   HCL,


Why is it a bad idea to throw your own exceptions?

1 Answers   Visual Soft,


What is bitwise operator in c#?

0 Answers  


What is a static property. Give an example?

0 Answers  


What is marshalling in c#?

0 Answers  


What are generics in c#.net?

0 Answers  


What is the difference between static class and sealed class in c#?

0 Answers  


Does c# replace c++?

0 Answers  


Categories