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
What is binding in c#?
If I want to override a method one of class A and in class b then how do you declare?
Can main method be final?
What is the difference between and xml documentation tag?
What is difference between function and method in c#?
Whats an assembly? Describe the importance of assembly?
Is string a class in c#?
What is int32 in c#?
Are constructors inherited c#?
Can int be null in c#?
What is the difference between as and is operators in c#?
What does type safety mean?
write program in c# using this instructions name avinash varma ,work experiance<2,nochildren his work experiance is higher than 5 years,more than one children one children name is diwakar,number of years of work eperiance at current company is the ratio of children and work experiance is 0.21 to 0.5
write a c# program add two matrix with input number ?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?