Answer Posted / 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 |
Post New Answer View All Answers
What is difference between property and variable in c#?
How do you type a null character?
What is the difference between a private assembly and a shared assembly?
What's the difference between a method and a procedure?
What is difference between method and function in c#?
What is the console on a mac?
Why can't we use a static class instead of singleton?
What is the difference between IEnumerator and IEnumerable?
Why is c# used?
How do I simulate optional parameters to com calls?
What is difference between ienumerable and enumerable in c#?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
What is function c#?
What is a virtual property. Give an example?
Can an abstract class have a constructor c#?