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
What is AutoMapper in C#?
What is a nested type. Give an example?
Does c# have a 'throws' clause?
What is using keyword in C#?
How do I create multifile assembly?
Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?
Why do we use delegates?
How do you prevent a class from being inherited?
What is the use of protected in c#?
What is difference between encapsulation and abstraction in c#?
what are the Disadvantages of vb
What is private virtual in C#?
Is a structure a class?
Is c# the same as d flat?
What is readline c#?