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 do I enforce const correctness in c#?
Can you inherit multiple classes in c#?
What is a streamwriter in c#?
Is it possible to have different access modifiers on the get/set methods of a property?
What do you mean by serialization in .NET?
Are classes passed by reference in c#?
Is int reference type c#?
what is the equivalent to regsvr32 and regsvr32 /u a file in .net development?
What is icollection in c#?
Can we have only “try” block without “catch” block in c#?
What is a template class?
What is int32 in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)