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 asenumerable in c#?

0 Answers  


Can a class have static constructor?

0 Answers  


How Global.asax is used ?

0 Answers   Siebel,


When can a derived class override a base class member?

0 Answers  


What is sql transaction in c#?

0 Answers  






What's c# ?

0 Answers  


Which function is the entry point for a DLL in MS Windows 3.1?

0 Answers   3i Infotech,


Why abstract class is not instantiated in c#?

0 Answers  


What is console programming language?

0 Answers  


What is a pre-requisite for connection pooling?

2 Answers  


Define a strong name in .net?

0 Answers  


What is data annotation in c#?

0 Answers  


Categories