When compiler adds a default constructor to a class?
Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between paramaterized constructor and copy constructor?
What is the main purpose of xml?
How to use delegates with events?
What is a class c#?
What are delegates?
If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.
Explain About Iunknown interface Queue
What is difference between throw and throws in c#?
How do I enforce const correctness in c#?
What is _layout cshtml?
Can we have 2 main methods in c#?
Define c# i/o classes? List the commonly used classes?
What is the relationship between a process, application domain, and application?
What is a console device?
Which is better python or c#?