In c#, what will happen if you do not explicitly provide a constructor for a class?



In c#, what will happen if you do not explicitly provide a constructor for a class?..

Answer / Aesha Varshney

If you do not explicitly provide a constructor for a class in C#, the compiler will automatically generate a default (parameterless) constructor for the class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a method signature c#?

1 Answers  


How are methods overloaded?

1 Answers  


What is attribute and reflection in c#?

1 Answers  


Explain about multithreading?

1 Answers  


Why is it a bad idea to throw your own exceptions?

4 Answers  


What do you mean by hashtable c#?

1 Answers  


Why singleton class is sealed?

1 Answers  


What?s the advantage of using System.Text.StringBuilder over System.String?

3 Answers  


What is meant by collections in c#?

1 Answers  


Define constructor in c#.

1 Answers  


What?s the difference between System.String and System.StringBuilder classes?

5 Answers  


What is difference between dll and exe in c#?

1 Answers  


Categories