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 |
Explain the OOPS concept in C#?
What is the difference between func and action delegate?
What is a system lock?
What is regex c#?
Can a class have more than 1 destructor?
How are methods overloaded?
What is an array class?
Can hashtable have duplicate keys?
When Should You Call The Garbage Collector In .net?
What is a cs file?
What is Asynchronous call and how it can be implemented using delegates?
What is the difference between static class and singleton class in c#?