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


Please Help Members By Posting Answers For Below Questions

What are strong name assemblies?

642


How do I create multifile assembly?

603


Why do we need encapsulation in c#?

616


Is a structure a class?

573


Explain the different ways a method can be overloaded?

535






Can private virtual methods be overridden in c#.net?

614


What is a console file?

574


What is the difference between a constant and a static readonly field?

619


What is console based application?

579


What is the different types of private assembly and shared assembly?

598


What does int parse do in c#?

571


Define constructors

631


What is task parallel library?

592


Why delegate is used in c#?

547


What is ildasm and obfuscator in net?

629