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

What is windows form in c#?

535


What do you understand by 'access specifiers' in C#?

518


How is a loop recorder monitored?

497


Why do we need ienumerable in c#?

459


In a memory when you Box and Unbox a value-type what happens?

540






Is and as keyword in c# net?

527


What is array c#?

515


What are the advantages of interface in c#?

500


what is the difference between convert.tostring() and tostring() functions ?

564


What is continue in c#?

507


What is tpl in c#?

493


Why do we need collections in c#?

465


What is xor operation?

521


What is hash c#?

492


Explain About Iunknown interface Queue

541