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
Can you specify nested classes as partial classes?
What are the differences between system.string and system.text.stringbuilder classes?
What is a method signature c#?
How to override a function in c#?
Is c# front end or back end?
List down the fundamental oop concepts?
How does return work in c#?
What is a service layer c#?
What is use of private class in c#?
What is lambda expression in c#?
What are circular references?
How to block a class from being inherited further?
What sort algorithm does c# use?
What is new method in c#?
What is the difference between a field and a property in c#?