When compiler adds a default constructor to a class?

Answer Posted / abhay k pandey

When there in no explicite parameterless constructor
written for any class. C# compiler calls the default
constructor and initializes fields with zero, false and
null values.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you escape in c#?

617


Why do we use reflection in c#?

588


What is the difference between wrapper class and primitive?

533


What is the difference between dynamic type variables and object type variables in c#?

556


What is event sourcing in c#?

600






What are the properties of c#?

576


What is private constructor c#?

588


What is asp net in c#?

596


How do I join one form to another in c#?

548


How long does it take to learn c# programming?

552


What is the Signification of the "new " keyword in C#? example

620


How many types of polymorphism are there?

598


What is the difference between the debug class and trace class? Documentation looks the same.

594


What is Implementation inheritance and interface inheritance?

572


Explain manifest in c#.

608