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 use abstraction in c#?

907


What is difference between managed and unmanaged code?

998


Can list contain duplicates c#?

892


What are the problem with .NET generics?

987


What is unmannaged code and will CLR handle this kind of code or not .

1021


What is difference between static and constant variable?

990


2. What happened when BO object has been called?

1979


What are different types of classes in c#?

903


What is the use of 0 in c#?

1026


What does namespace mean?

949


What is the use of delegates in c#?

893


What can I create with c#?

917


Explain about c# language.

1060


What is the use of main method in c#?

985


Explain the steps to create satellite assembly?

902