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 |
Why we use delegates in c#?
can you overload a method of class A in Class B if it is derived class of A?If it is yes tell me how is it possible?
4 Answers Mphasis, Ness Technologies,
What is executescalar in c#?
What is the functionality of break and continue in Visual Studio?
What are custom attributes in c#?
What is msil, and why should developers need an appreciation of it if at all?
What are the extension methods in c#?
What are different properties provided by Object-oriented systems?
I have to create a windows application using C# .net to Modifiy the XML file. The application have to show the node and node value. plz help me.
What is returned if you pass the value 12.34 to the parsefloat () function?
What is the difference between these statements obj=null and obj.dispose()
If I want to override a method 1 of class A and in class b then how do you declare ?