What are constructors and destructors?

Answer Posted / rupali

constructor is a special method which is called when class is instantiated. this method is used to assign values to the
members of a class. constructor has same name as class.
Destructor is opposite to constructor & has same name of
class. this method is called when object of a class is
destroyed.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you add column headers in listview control?

1851


What is meant by building a recordset.

815


What can you do with visual basic?

772


Which language is used in visual basic?

694


Is it possible to set a shortcut key for label?

1586


What is the difference between c++ and visual basic?

730


What is ado in vb.net?

736


How do I change the color of a form in visual basic?

701


What is the difference between change event in normal combobox and dbcombobox?

1843


___ Property is used to count no. of items in a combobox.

1152


Is visual basic easy?

738


Types of DBCombo boxes

1784


How do you change the icon and otherwise manipulate the DOS box?

1270


Why visual basic is used?

730


How can you filter out specific type of file using file system controls?

1594