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
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 |
What's the difference between a static method and a non static method c#?
What is application c#?
What is difference between dictionary and hashtable in c#?
Can derived classes have greater accessibility than their base types?
Define thread? Explain about multithreading?
What is called method in c#?
How do you generate documentation from the C# file commented properly with a command-line compiler?
How can you access a private method of a class?
What is use of console?
What is the default value of object in c#?
Can namespace contain the private class?
How many bytes is an int?