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 Posted / 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 View All Answers
How to sign an assembly with strong name?
Is dll a library?
How many variables do you need?
What are async and await?
How do I do implement a trace?
What is data adapter in c#?
What are tuples c#?
What is a generic in c#?
What is jit (just in time)?
What does void mean in c#?
Do events have return type c#?
Explain what are the steps for creating clr trigger?
What are bitwise logical operators?
Define a jagged array in c#?
What is xor operator in c#?