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 / 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 |
What are iterators?
What is the difference between const and static read-only?
Define an assembly in .net?
what is a static constructor?
What is an assembly loader?
What is data dictionary in c#?
what is .NET framework architecture ??
What is the Difference between class and abstract class?
Why do we override in c#?
what are windows services?
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?
Define MSIL, and how does it works? Why our developers need an appreciation of it if at all?