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 mvc firstordefault?

0 Answers  


Is there an equivalent of exit() for quitting a c# .net application?

0 Answers  


What is signature c#?

0 Answers  


If we write a goto or a return statement in try and catch block will the finally block execute?

6 Answers  


What is property in c#?

0 Answers  






Can a constructor be private in c#?

0 Answers  


What are the different types of assembly?

0 Answers  


Are constructors inherited c#?

0 Answers  


Explain clr in brief.

0 Answers  


Is c# a strongly-typed language?

0 Answers  


What is an object and a class?

0 Answers  


Explain the difference between abstract class and interface.

0 Answers   Accenture,


Categories