If a child class instance is created, which class constructor is called first - base class or child class?



If a child class instance is created, which class constructor is called first - base class or child ..

Answer / Nishant Pratap Singh

"When creating a child class instance, the base class constructor is called before the child class constructor."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is uint64_t?

1 Answers  


Explain the top reason to use c# language?

1 Answers  


Does c# have its own class library?

1 Answers  


What is Delegate and what is it used for ?

1 Answers   NA,


Can you put two constructor with the same structure in a class?

1 Answers  


What is a delegate? Explain.

1 Answers  


Explain inheritance in c#?

1 Answers  


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


What?s an interface class?

5 Answers   Mind Tree,


Can multiple catch blocks be executed?

1 Answers  


Does C# support multiple inheritance?

5 Answers  


How do you implement multiple inheritance in .NET?

5 Answers   Infosys, Microsoft,


Categories