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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need generics in c#?

984


How does one compare strings in c#?

1065


What are the types of access modifiers?

955


What are the uses of namespaces?

1057


What is thread pooling?

1029


What is dynamic dispatch?

1013


What is difference between Trace and Debug

1129


What is the difference between asp net and c#?

970


Which program construct must return a value?

1118


How to sort an int array in c#?

1008


How do I format a string in c#?

902


If you define a user defined data type by using the class keyword, is it a value type or reference type?

928


What can I create with c#?

972


Which function is the entry point for a DLL in MS Windows 3.1?

1219


Is a games console a computer?

985