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

What is the difference between dll and lib?

0 Answers  


Constructor to an arbitrary base constructor?

0 Answers  


syntax for writing private method in a interface

7 Answers   ABMPL, Wipro,


Can properties be private in c#?

0 Answers  


Difference between value and reference type.

0 Answers  


What are the collection classes ?

2 Answers   Digital GlobalSoft,


What is Serialization and how do we implement (in real time scenario)

1 Answers  


Do unused Namespaces in c# affect run-time performance?

0 Answers   HCL,


Which layer executed first among these Application layer,Buisness layer or Data Base Layer?

2 Answers   L&T,


How will U encapsulate button trigger event into text_box event of Pressing Enter key?

3 Answers   TCS,


Explain “static” keyword in c#?

0 Answers  


Explain how to add controls dynamically to the form using c#.net.

0 Answers  


Categories