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 are iterators?

5 Answers   TCS,


What is the difference between const and static read-only?

0 Answers  


Define an assembly in .net?

0 Answers  


what is a static constructor?

0 Answers  


What is an assembly loader?

0 Answers  






What is data dictionary in c#?

0 Answers  


what is .NET framework architecture ??

0 Answers   IIT, Impetus,


What is the Difference between class and abstract class?

2 Answers  


Why do we override in c#?

0 Answers  


what are windows services?

0 Answers  


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?

1 Answers  


Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?

0 Answers   Siebel,


Categories