04-29-2011, 07:56 AM
As I understood the context of your question, please note that classes have multiple constructors but only one destructor. The destructor is automatically called when an object is destroyed. In the destructor all the cleaning task has been performed i.e. de-allocation of memory. When object is created, memory allocated to object through constructor. When object is destroyed, the destructor de-allocates the memory of that object. The destructor is called for all the objects in the class.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
