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

How do I enforce const correctness in c#?

0 Answers  


Can you inherit multiple classes in c#?

0 Answers  


What is a streamwriter in c#?

0 Answers  


Is it possible to have different access modifiers on the get/set methods of a property?

0 Answers  


What do you mean by serialization in .NET?

0 Answers   Accenture,


Are classes passed by reference in c#?

0 Answers  


Is int reference type c#?

0 Answers  


what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?

0 Answers   4Cplus,


What is icollection in c#?

0 Answers  


Can we have only “try” block without “catch” block in c#?

0 Answers  


What is a template class?

0 Answers  


What is int32 in c#?

0 Answers  


Categories