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

Explanation on Generic?

0 Answers   QuestPond,


What does typeof return c#?

0 Answers  


What is collection class c#?

0 Answers  


write code for Factorial?

6 Answers   Tech Mahindra,


I have a very important query in my mind. Please help me regarding this. I don't have any real time exp in .net. But I have a knowledge it .net. I got an offer from an MNC company as a software developer has I had kept 2 years of fake exp. Even though for this job I had worked hard to crack interview for about an year. So, I would like to know how difficult it will be for working in real time as I don't have real time exp. Please tell me as soon as possible bcoz I need to join by next month. Can i sustain over there for a longer time or not. And also let me know how to work pressure will be over there. Please help me regarding this. I'm getting tension thinking about it. Thank you.

1 Answers  


Is string a data type in c#?

0 Answers  


Explain about Protected and protected internal, ?internal? access-specifier?

7 Answers  


Does c# support properties of array types?

0 Answers  


What are the drawbacks of extending an interface as opposed to extending a class?

0 Answers  


list the steps in code compilation in c#?

0 Answers  


Can a struct inherit from an interface in c#?

0 Answers  


Why is .net so popular?

0 Answers  


Categories