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 are console applications used for?
What is the difference between array and arraylist c#?
What is difference between ienumerable and enumerable in c#?
You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?
How do you prevent a class from being inherited in c#?
What benefit do you get from using a primary interop assembly (pia)?
What are synchronous and asynchronous operations?
How does dependency injection work c#?
What is global namespace in c#?
Illustrate race condition?
What is an inheritance in c#?
How do I use the 'using' keyword with multiple objects?
What is arraylist c#?
What method is used to sort the elements of the array in descending order?
What is verbatim literal in c#?