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

Can constructor have return type c#?

0 Answers  


What is difference between array and list in c#?

0 Answers  


what is the syntax to inherit from a class in c#?

0 Answers   Siebel Systems,


What is Interface and Abstraction (in real time scenario)

4 Answers   HCL,


What is Fragmentation and its Types?

0 Answers   MCN Solutions,


Can you call from an inherited constructor to a specific base constructor if both base class and an inheriting class has a number of overloaded constructors?

0 Answers   Siebel,


What Is A Multicast Delegate?

0 Answers   Siebel Systems,


What does it mean?

0 Answers  


What is a struct in C#?

0 Answers   Arigo Infotech,


How can we insert 100 records @ a time without using for loop into the databse

10 Answers   IBM,


What is the difference between String s(Small s) and String S(Capital S)?

4 Answers  


what is uniary operators and binary operators and what is the difference

1 Answers   Protech,


Categories