Constructors and distructors

Questions by Beena   answers by Beena

Showing Answers 1 - 4 of 4 Answers

Sandeep

  • Oct 17th, 2005
 

when we initialize the form at that time if we want to set any variable's value then we can set it by defining in constructor. constructor 's name always same as class name.and destructor is used to recover memory occupied by any variable defining in constructor.

  Was this answer useful?  Yes

Amar

  • Oct 9th, 2007
 

Constructors have same name as class has, constructor's need not any call through objects, they are called automatically when an instance of class is created.
Destructors are used to make the memory free used by constructor variable, it do it's job just defining a destructor at the end of pro. 

  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