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...


If a base class has a bunch of overloaded constructors, and
an inherited class has another bunch of overloaded
constructors, can you enforce a call from an inherited
constructor to an arbitrary base constructor?



If a base class has a bunch of overloaded constructors, and an inherited class has another bunch o..

Answer / js_m

yes, for example

class Root
{
public Root(int id) {...}
}

class Derived
{
public Derived (int id) : base(id)
{}
}

'public Derived (int id) : base(id)' does the need ful.

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Sharp Interview Questions

Explain dataadapter.update method in .net?

0 Answers  


How does the lifecycle of Windows services differ from Standard EXE?

0 Answers   Siebel Systems,


Explain the difference between a struct and a class?

0 Answers  


List out the differences between array and arraylist in c#?

0 Answers  


What is string empty?

0 Answers  


What is lock statement in C#?

0 Answers   B-Ways TecnoSoft,


What are namespaces, and how they are used?

0 Answers  


How do you comment in c#?

0 Answers  


What is the difference between dispose() and finalize() methods in c#?

0 Answers  


List the difference between interface and abstract class?

0 Answers  


What are virtual destructors?

0 Answers   InfoAxon Technologies,


What are the Different kinds of methods?

4 Answers   Wipro,


Categories