what is a constructor?

Answer Posted / shadab alam

It is very Important to know that
---------------------------------------
Constructor is generally used to create the new instance of
a class.

Constructor is special type of method that is used to
initialized the member variable and It has same name as the
class Name.It does not have return type.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by collections in c#?

452


Which class comes after the SortedList class?

570


What are the Configuration files in .net?

515


What are the Types of JIT and what is econo-JIT

800


What is dll in vb.net?

484






What is the task perform by clr?

574


What is lazy t?

510


What are c# collections?

475


What's the difference between class and object?

484


Explain the difference between directcast and ctype.

455


What is as keyword in c#?

577


How many constructors can a class have in c#?

483


What are the new features in c# 2.0?

517


What is or operator in c#?

542


Why can't we use a static class instead of singleton?

451