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 anonymous class in c#?
What is null in database?
What is serialization in c#?
What is difference between ilist and list in c#?
What benefit do you get from using a primary interop assembly (pia)?
What is difference between asp net and c# net?
What is the difference between // comments, /* */ comments and /// comments?
What are the different types of literals in c#?
What's the difference between a method and a procedure?
Define Final Class in C#
What is the main purpose of xml?
How do I convert a string to an int in c#?
Can we override interface methods in c#?
What do you mean by thread safe in c#?
Can you use foreach iteration on arrays in c#?