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

Is for loop faster than foreach?

994


State two different types of access modifiers.

986


What is a decimal in c#?

928


What is ispostback c#?

858


What is difference between function and method in c#?

881


What are synchronous and asynchronous operations?

962


What is a partial class. Give an example?

959


Are arrays immutable c#?

1032


what is collections in .net? why we use?

2131


How do I stop my console from closing in c#?

890


What do you mean by the delegate in c#?

894


What are circular references? How garbage collection deals with circular references.

901


Is c# a keyword?

909


What is datatable in c#?

931


Explain streamreader/streamwriter class?

981