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 keywords in c#?
What is difference between private, protected, and public in C#?
Can a constructor be static in c#?
What is an argument in c#?
What is sorting in c#?
What is the usage of transponders?
What is a multicast c# delegate?
Why do we use public static void main in c#?
What is boxing? Explain its functionality?
Give an example to show for hiding base class methods?
Give examples for value types?
What do you mean by expression tree?
What is the delegate in c#?
What is the use of console?
How will you allow a class to be inherited, but prevent the method from being over-ridden?