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 are the two keywords used to pass a variable by reference in c#?

2 Answers   IBM,


What is reference c#?

0 Answers  


What is the xml document structure?

0 Answers  


What's the difference between abstraction and encapsulation?

0 Answers  


What is default method in c#?

0 Answers  






Enlist the different types of classes in c#?

0 Answers  


Which class does the remote object has to inherit?

0 Answers  


What is the difference between icomparer and icomparable in c#?

0 Answers  


What is difference between tostring() vs convert.tostring() vs (string) cast

0 Answers  


What is a multicast c# delegate?

0 Answers  


What are cookies in c#?

0 Answers  


Can you store multiple data types in System.Array?

7 Answers  


Categories