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's the difference between a static method and a non static method c#?

0 Answers  


What is application c#?

0 Answers  


What is difference between dictionary and hashtable in c#?

0 Answers  


Can derived classes have greater accessibility than their base types?

0 Answers  


Define thread? Explain about multithreading?

0 Answers  






What is called method in c#?

0 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


How can you access a private method of a class?

0 Answers  


What is use of console?

0 Answers  


What is the default value of object in c#?

0 Answers  


Can namespace contain the private class?

0 Answers  


How many bytes is an int?

0 Answers  


Categories