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 Posted / 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 |
Post New Answer View All Answers
What are strong name assemblies?
How do I create multifile assembly?
Why do we need encapsulation in c#?
Is a structure a class?
Explain the different ways a method can be overloaded?
Can private virtual methods be overridden in c#.net?
What is a console file?
What is the difference between a constant and a static readonly field?
What is console based application?
What is the different types of private assembly and shared assembly?
What does int parse do in c#?
Define constructors
What is task parallel library?
Why delegate is used in c#?
What is ildasm and obfuscator in net?