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 literal control
What is an escape sequence in c#?
How do I start a program in c#?
What is view state c#?
How do you declare a variable in c#?
What is difference between array and collection?
What is thread.sleep()?
How will you allow a class to be inherited, but prevent the method from being over-ridden?
What is yield break in c#?
What do you mean by for each loop?
What is the difference between an integer and int?
Is c# strongly typed?
Which attribute adorn a test class to be picked up by the NUnit GUI in the NUnit test framework?
What do you mean by a windows process in regards to memory allocation?
Why do we need properties in c#?