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 is c sharp used for?
What are class fields?
What is the difference between as and is operators in c#?
What is the use of base keyword? Tell me a practical example for base keyword’s usage?
What is a string c#?
Can you see a loop recorder?
How C# 4.0 supports dynamic programming language?
Explain manifest & metadata in c#.
Describe the overview of clr integration.
What is garbage collector and where should you use in .NET?
Can bool be null c#?
What is use of singleton class in c#?
Does c# support properties of array types?
Is post back c#?
Which one is trusted and which one is untrusted?