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 |
How Reflection is used and what it's significance ?
What are properties and indexer?
Which type of variables are under the control of garbage collector?
If I want to override a method one of class A and in class b then how do you declare?
What is a byte in c#?
What is Web.config?
What are the different generaions of Garbage Collection and how do they work
What are the benefits of using the aggregate method in linq?
What?s the .NET datatype that allows the retrieval of data by a unique key?
How do you secure a webservice?
What is difference between tostring() vs convert.tostring() vs (string) cast
What is delegates and events?