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 an array of arrays called?

0 Answers  


What is xml serialization in c#?

0 Answers  


define ispostback and give some examples

2 Answers  


Can we have private constructor in our class file. When we are trying to create instance for the class will it create or throw error regarding that?

5 Answers  


What is a pre-requisite for connection pooling?

1 Answers  






Is c# good for beginners?

0 Answers  


What is difference between throw and throws in c#?

0 Answers  


What are managed providers?

0 Answers   UGC Corporation,


What is difference between class and abstract class in c#?

0 Answers  


Is php better than c#?

0 Answers  


What is callback function in c#?

0 Answers  


In c#.Net Application For DataGridview binding which method is faster in below two case?Why..? 1)looping-Using For loop 2)Databinding direct using Dataset

4 Answers   CTS,


Categories