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

What is inner class in c#?

931


What is difference between first and firstordefault?

880


Why do we parse in c#?

837


How to exclude a property from xml serialization?

967


What is serialization in unity?

868


What is the difference between system.text.stringbuilder and system.string?

982


Explain the difference between a sub and a function in c#.

968


Is there a way of specifying which block or loop to break out of when working with nested loops?

973


What is a boolean c#?

858


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

2033


What is desktop GUI application?

888


Can a loop recorder detect a heart attack?

976


Which is executed if an exception has not occurred?

922


What is COM Interoperability?

920


What are partial types in c#?

858