Constructor to an arbitrary base constructor?



Constructor to an arbitrary base constructor?..

Answer / Vivek Kumar Katiyar

In C#, you can invoke a specific base class constructor using the 'base' keyword followed by arguments in parentheses. For example: public MyClass(int param) : base(param * 2) { ... }

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between list and dictionary in c#?

1 Answers  


How do you determine whether a string represents a numeric value?

1 Answers  


Can a method be sealed in c#?

1 Answers  


What is managed or unmanaged code?

1 Answers  


Explain data types in c#?

1 Answers  


What is cts, clr?

1 Answers  


What are primitive types in c#?

1 Answers  


List the different stages of a thread?

1 Answers  


What are STA And MTA in threading?

4 Answers   Kanbay,


What is the Difference between class and abstract class?

2 Answers  


Valuetype/reference type?

6 Answers   Microsoft,


What are the ways to deploy an assembly?

3 Answers  


Categories