04-29-2011, 08:04 AM
what is the difference between constructor and destructor?
|
constructor and destructor in c++ 2011
|
|
04-29-2011, 08:04 AM
what is the difference between constructor and destructor?
04-29-2011, 08:05 AM
Difference between constructor and destructor is given in table form:
Constructor Destructor Same name as class name Same name as class name but preceded by tilde (~) sign Used for memory allocation/ initialization Used for memory de-allocation Constructor automatically called when an object is created Destructor is automatically called when an object is destroyed 0300-9520262 Get solution in 24 hour |cpmputer & internet mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
|
|
« Next Oldest | Next Newest »
|