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
Is array a list?
What is called method in c#?
What are the 2 types of data types available in c#?
What is an inheritance in c#?
What is overloading with example?
What are data types examples?
What is native image generator (ngen.exe)?
Can class inherit from struct c#?
What is the difference between console application and windows application?
Define multicast c# delegate?
Explain anonymous type in c#?
How main method is called in c#?
Are constructors inherited c#?
What is Inheritance in C#?
Can we use "this" command within a static method?