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 |
Is there any sample c# code for simple threading?
How does split work in c#?
What statements can enclose a "continue" statement?
What is the purpose of static?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
what is difference between is and as operators in c#?
What is action c#?
What is xml serializer?
Explain what is the smallest unit of execution in .net?
What are the characteristics of c#?
Can you see a loop recorder?
What are the types of operator?