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 hashtable in c# net with example?

0 Answers  


What is the components of window?

0 Answers  


Can we inherit an abstract class in another abstract class. If no why and If yes how..?

2 Answers  


What is the Difference between directcast and ctype?

1 Answers   Wipro,


Explain the difference between abstract class and interface.

0 Answers   Accenture,






Is arraylist thread safe?

0 Answers  


what is class libraries?

1 Answers  


Enlist the different types of classes in c#?

0 Answers  


Can a private virtual method can be overridden?

0 Answers  


What can I create with c#?

0 Answers  


What is extended method in c#

3 Answers   iNautix,


What is difference between class and interface in c#?

0 Answers  


Categories