Explain constructor in c#?



Explain constructor in c#?..

Answer / hrpynux@gmail.com

A constructor in C++ is a special 'MEMBER FUNCTION' having the same name as that of its class which is used to initialize some valid values to the data members of an object. It is executed automatically whenever an object of a class is created

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the C# syntax to catch any possible exception?

0 Answers   Siebel,


What is the advantage of constructor in c#?

0 Answers  


What is the benefit of dependency injection c#?

0 Answers  


What is dapper in c#?

0 Answers  


how to implement singelton in C# & its uses?

1 Answers   TCS,






What is the full form of GAC? Explain its uses?

0 Answers   PUCIT,


What are fields in c#?

0 Answers  


What are Uses of CLR

0 Answers   TCS,


What is an arraylist in c#?

0 Answers  


What is difference between interface inheritance and class inheritance ?

8 Answers   Digital GlobalSoft,


List out two different types of errors in c#?

0 Answers  


What is the use of the static constructor? When static constructor gets compiled?

1 Answers   Syntel,


Categories