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
If you want to convert a base type to a derived type, what type of conversion do you use?
What is constants in c#?
What exception can an overridden method throw in comparison with the method it is overriding?
Is type nullable c#?
What are c# i/o classes? What are the commonly used i/o classes?
What are the benefits of using generics?
What all details the assembly manifest will contain?
What is dll file in c#?
What is the difference between static and private constructor?
What is overloading in c#?
Is int reference type c#?
Why ienumerable is used in c#?
What is difference between web and window application?
What are Memory foot print of an exe?
What is the difference between read and readline in c#?