When compiler adds a default constructor to a class?
Answers were Sorted based on User's Feedback
Answer / chandana
The compiler adds a default constructor to a class when no
constructor are specified by the programmer.
Is This Answer Correct ? | 10 Yes | 0 No |
Answer / sitaram
when ever compile the class,First compiler check the any
type of constructor is available or not in that class? if
it is not available. compiler will automatically create the
default constructor.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
Answer / romeo
when the object of that class is created with no parameters
passed.
Is This Answer Correct ? | 2 Yes | 7 No |
How will you get the different language strings?
What is cshtml extension?
What is the difference between mobile application and desktop application?
What is datarelation c#?
What is the difference between the debug class and trace class? Documentation looks the same.
Explain About .NET Remoting and types of remoting
What is private protected in c#?
What is the purpose of reserved word using in c#?
Define c# i/o classes?
What do you mean by jagged arrays in c#?
About a class access specifiers and method access specifiers ?
What is window application in c#?