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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you specify nested classes as partial classes?

512


What are the differences between system.string and system.text.stringbuilder classes?

486


What is a method signature c#?

519


How to override a function in c#?

547


Is c# front end or back end?

513






List down the fundamental oop concepts?

498


How does return work in c#?

508


What is a service layer c#?

471


What is use of private class in c#?

511


What is lambda expression in c#?

509


What are circular references?

526


How to block a class from being inherited further?

484


What sort algorithm does c# use?

511


What is new method in c#?

525


What is the difference between a field and a property in c#?

493