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

Explain about multithreading?

556


What is func c#?

504


Explain the accessibility modifier protected internal?

466


What is delegate in c# interview questions?

499


What is the symbol used for in c#?

497






What is platform independence"?

542


What is difference between ilist and list in c#?

486


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

517


What does void mean unity?

504


what is inheritance and an example in vb.net and c# of when you might use it?

530


What is difference between il and dll ?

531


What are the advantages of generics in c#?

505


How to create events for a control? What is custom events? How to create it?

545


What is static void main in c#?

506


What does int parse do in c#?

471