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
When was c# created?
What does break do in loop?
Why is c# a good programming language?
What are the properties of c#?
Can we write class inside a class in c#?
What is the implicit name of the parameter that gets passed into the set method/property of a class?
What is jagged array?
How long can a string be c#?
What does using do in c#?
Difference between Value type & reference types ? and give the example in .Net?
What is the default value of object in c#?
Can we inherit a class with private constructor in c#?
What Is An Interface Class?
What is a dynamic assembly?
the c# keyword .int. Maps to which .net type?