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 are the two keywords used to pass a variable by reference in c#?
What is reference c#?
What is the xml document structure?
What's the difference between abstraction and encapsulation?
What is default method in c#?
Enlist the different types of classes in c#?
Which class does the remote object has to inherit?
What is the difference between icomparer and icomparable in c#?
What is difference between tostring() vs convert.tostring() vs (string) cast
What is a multicast c# delegate?
What are cookies in c#?
Can you store multiple data types in System.Array?