© { JSL }
87
Text Box: Death
Death
·object death is a two phase process
wfinalise the object back to raw memory
wdeallocate the raw memory back to the heap
·C++ – deterministic
wuser calls destructor
wuser calls operator delete
·C# – non deterministic (like Java)
wGC calls Finalize
wGC reclaims heap memory
§
Shall we take our cars?