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 string pool in c#?

529


can you create a function in c# which can accept varying number of arguments

593


What is a string c#?

485


Is dll a library?

483


How many types of constructors are available in c#?

535






What is a linked list c#?

499


What is the and operator in c#?

479


hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?

1059


Is php better than c#?

495


What is jit (just in time)?

548


What is master page in asp net c#?

472


How do I create a dbml file?

476


What does public mean in c#?

513


Is string primitive?

489


Explain the accessibility modifier protected internal?

456