Explain constructor?

Answers were Sorted based on User's Feedback



Explain constructor?..

Answer / satish

A constructor is a method that is used to create new
instances of a class. You can easily recognize a
constructor because it has the same name as the class and
is defined with syntax similar to that of a method
definition, but it has no return type.

Is This Answer Correct ?    12 Yes 1 No

Explain constructor?..

Answer / ranjanatyagi

A constructor has the same name as class name.Constructor
has no return type.Constructor are used to initialize the
object.

Is This Answer Correct ?    7 Yes 0 No

Explain constructor?..

Answer / tiger senthil

Complier identifies the class name and method name sdould
be the name.which invoked when class instanciate the
object.Here possible to overload the constructor.

Is This Answer Correct ?    4 Yes 1 No

Explain constructor?..

Answer / salman

A constructor has the same name as class name.Constructor
has no return type.Constructor are used to initialize the
object.

Is This Answer Correct ?    3 Yes 0 No

Explain constructor?..

Answer / pragnyan

Constructor is a method having the same name as the class
name.It is automatically invoked when instance of the class
is created.It is used to initialize the members.Constructos
canot have any return type not even void.constructors can
be overloaded.

Is This Answer Correct ?    2 Yes 0 No

Explain constructor?..

Answer / surabathina

constructor is a method it gets invoked when instance of
the class is created

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is final keyword in c#?

0 Answers  


How to use the sreamReader class to read form a text file?

0 Answers   MCN Solutions,


What?s the C# equivalent of C++ catch (?), which was a catch-all statement for any possible exception?

1 Answers  


Is a c# interface the same as a c++ abstract class?

0 Answers  


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  






What is the purpose of the integer parse method the decimal parse method?

0 Answers  


Explain About namespaces

0 Answers  


What is an object pool in .net?

0 Answers  


What is multithreading with .net?

0 Answers  


What do you mean by shared assembly?

0 Answers   Accenture,


Explain how do you debug an asp.net web application?

0 Answers  


what is the Difference between the public and private ?

0 Answers   Microsoft,


Categories