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 a cs file?
Explain streamreader/streamwriter class?
What is the default modifier for class in c#?
What is static classes?
Explain the difference between passing parameters by value and passing parameters by reference with an example?
Why ienumerable is used in c#?
What is a di class?
Can list contain duplicates c#?
Write the difference between TypeOf and GetType?
How do you escape c#?
What is CLR and its application.?
Why do we need static in c#?
What is a partial class in c#?
What is public or shared assemblies ?
What is session c#?