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


Please Help Members By Posting Answers For Below Questions

What is the difference between paramaterized constructor and copy constructor?

594


What is the main purpose of xml?

578


How to use delegates with events?

645


What is a class c#?

551


What are delegates?

874






If a.equals(b) is true then a.gethashcode & b.gethashcode must always return same hash code.

638


Explain About Iunknown interface Queue

621


What is difference between throw and throws in c#?

515


How do I enforce const correctness in c#?

609


What is _layout cshtml?

562


Can we have 2 main methods in c#?

563


Define c# i/o classes? List the commonly used classes?

633


What is the relationship between a process, application domain, and application?

604


What is a console device?

569


Which is better python or c#?

545