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 |
What is a virtual property. Give an example?
Explain manifest & metadata.
How many kinds of elements an array can have?
Difference between multi-level and multiple inheritance?
what is boxing and unboxing?can we initialize unboxing directly?
What is tryparse?
what are the contents of an assembly ?
What is the difference between overriding and overloading in systemverilog?
What you mean by inner exception in c#?
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
What are regular expressions? Search a string using regular expressions?
What is difference between internal and protected internal in c#?