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 the .NET collection class that allows an element to be accessed using a unique key?
Explain the difference between boxing and unboxing.
Explain how do I get deterministic finalization in c#?
Is constructor a static method?
What is the difference between dispose() and finalize() methods in c#?
How do you prevent a method from being overridden in c#?
Explain about generics in c#.net?
Is ram a heap?
What does clr stand for?
What are c# attributes and its significance?
What is int32 in c#?
Explain the concepts of cts and cls(common language specification).
Should I make my destructor virtual?
write code for inserting and updating recoards in sql server database using connected architecture & records shoulds displayed in grid view ( use c# )
What does console readkey do in c#?