what is a constructor?

Answer Posted / divya

Constructor is a method that is executed when an object is
created.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is array a collection c#?

535


What is default c#?

511


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1482


What is parallel programming in c#?

500


What is the difference between readkey and readline in c#?

458






Define acid rule of thumb for transactions in c#.

490


What is keywords in c#?

496


Write a sample code to write the contents to text file in c#?

487


Define a class and an object?

563


What is an argument in c#?

479


What is the data encapsulation?

491


Suppose two interfaces have same method, so how will you implement these methods in derive class?

493


What is difference between an Structure and Class?

575


Where value types are stored in c#?

515


To allow an element to be accessed using a unique key which .NET collection class is used ?

627