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
How to assign Null value to Var?
Why do canadians say zed?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
How to achieve polymorphism in c#?
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
Why do we use threads in c#?
What is private protected in c#?
What is the use of console?
Can a constructor have a return type?
What is .edmx file?
What is lock statement in C#?
Define using statement in c#?
Can we make a class private in c#?
Define encapsulation?
What is overloading in c#?