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

Explain how many types of exception handlers are there in .net?

465


What is constants in c#?

420


How to Install uninstall assemblies into GAC?

504


While debugging a C# application can you change the value of a variable?

534


how background thread access to ui control?

589






write a program to find the biggest palindrome in the given string

546


What is difference between struct and class in c#?

465


What is difference between ilist and list in c#?

482


What is data binding with example?

490


Is as operator in c#?

467


How to find out that the code is written as managed or un-managed code?

592


Differentiate between object pooling and connection pooling in c#?

538


What are the value types in c#?

502


What is entity framework c#?

455


Is c# code is unmanaged or managed code?

513