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?
Answers were Sorted based on User's Feedback
Answer / rahul
Yes, just place a colon, and then keyword base (parameter
list to invoke the appropriate constructor) in the
overloaded constructor definition inside the inherited class.
| Is This Answer Correct ? | 6 Yes | 0 No |
Contrast DTDs versus XSDs. What are their similarities and differences? Which is preferred and why ?
ctype(123.34,integer) - should it throw an error? Why or why not?
What is foreach loop in c#?
What is a statement c#?
What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?
Is null == null c#?
Why is it a bad idea to throw your own exceptions?
What does convert toint32 mean?
Can I use parseint?
What is static classes in c#?
Which is algorithm is used to Manage the Memory in .net ??
why C#.net doesnot support prcedures and why it supports structs,functions
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)