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 is hashtable in c# net with example?
What is the components of window?
Can we inherit an abstract class in another abstract class. If no why and If yes how..?
What is the Difference between directcast and ctype?
Explain the difference between abstract class and interface.
Is arraylist thread safe?
what is class libraries?
Enlist the different types of classes in c#?
Can a private virtual method can be overridden?
What can I create with c#?
What is extended method in c#
What is difference between class and interface in c#?