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



If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of..

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

If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of..

Answer / vik

yes we can

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a virtual property. Give an example?

0 Answers  


Explain manifest & metadata.

2 Answers   Wipro,


How many kinds of elements an array can have?

0 Answers  


Difference between multi-level and multiple inheritance?

17 Answers   Microsoft,


what is boxing and unboxing?can we initialize unboxing directly?

0 Answers   EDS,






What is tryparse?

0 Answers  


what are the contents of an assembly ?

0 Answers  


What is the difference between overriding and overloading in systemverilog?

0 Answers  


What you mean by inner exception in c#?

0 Answers  


WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)

5 Answers   eXensys,


What are regular expressions? Search a string using regular expressions?

0 Answers  


What is difference between internal and protected internal in c#?

0 Answers  


Categories