what is a constructor?

Answer Posted / dharmendra nonia

constructor is a special type of method that invoke when u
create a new instance of a class. Basically it is used to
initialize the member variables.Its name must be same as
the class name.It have no return type.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many variables do you need?

731


Is there regular expression (regex) support available to c# developers?

771


How do I link two windows forms in c#?

691


Why do we need delegates?

685


What is ioc containers c#?

687


Differentiate between method overriding from method overloading with its functionality?

771


What is the difference between delegates and superdelegates?

707


What is the use of console readline () in c#?

670


What is an assembly in dotnet?

765


What is difference between override and new in c#?

765


What does f mean in c#?

712


Define delay signing?

738


Explain more on CLR

961


Define c# i/o classes?

734


What is Wrapper class in dot net?

868