What is constructors and distructors.

Showing Answers 1 - 2 of 2 Answers

vishnu bobade

  • Sep 8th, 2005
 

Constructors and destructors control the creation and destruction of objects.  
 
To create a constructor for a class, create a procedure named Sub New anywhere in the class definition. To create a parameterized constructor, specify the names and data types of arguments to Sub New just as you would specify arguments for any other procedure, as in the following code: 
 
Sub New(ByVal sString As String) 

  Was this answer useful?  Yes

Sandeep Mittal

  • Nov 4th, 2005
 

Construtor and destructors are special type of fucntions that are called automatically. Constructor is called when the class is initialized and destructor is called when the class is destroyed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions