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 shared inheritance

3 Answers   IGT,


Explain About remoting and web services. Difference between them

0 Answers   Microsoft,


What’s a strong name?

0 Answers  


Explain states of a thread in c#?

0 Answers  


How do I make a dll in c#?

0 Answers  






What will be the output of the following code?

0 Answers  


Is c sharp open source?

0 Answers  


f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.

7 Answers  


What is Web.config?

0 Answers   Amazon,


What is difference between float and integer?

0 Answers  


Are cao stateful in nature?

0 Answers  


Is php easier than c#?

0 Answers  


Categories