Explain constructor?

Answer Posted / satish

A constructor is a method that is used to create new
instances of a class. You can easily recognize a
constructor because it has the same name as the class and
is defined with syntax similar to that of a method
definition, but it has no return type.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between array and collection?

714


What is the use of protected in c#?

690


What are the steps for creating clr trigger

771


What is verbatim string literal in c#?

651


Explain the difference between “system.array.clone()” and “system.array.copyto()” in c#?

692


How do I make a dll in c#?

690


What is ienumerable <> in c#?

644


Are arrays immutable c#?

695


What is namespace c#?

659


explain the three services model commonly know as a three-tier application.

724


What is the syntax for calling an overloaded constructor within a constructor?

737


What is int32 in c#?

668


Who introduced c#?

657


What is routing in c#?

629


How do you create user defined data types in c#?

738