cpp:object_lifecycle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cpp:object_lifecycle [2021/05/07 07:29]
gthanos [2η Περίπτωση - Δημιουργία αντικειμένων στο Heap]
cpp:object_lifecycle [2021/05/07 07:32]
gthanos [Ένα ακόμη πιο σύνθετο παράδειγμα αρχικοποίησης δεικτών]
Line 247: Line 247:
   cout << "---------------" << endl;   cout << "---------------" << endl;
      
-  delete[] r4[0]; +  delete[] r4[0];  // Call the destructor of Rectangle for all elements in row 0. 
-  delete[] r4[1];+  delete[] r4[1];  // Call the destructor of Rectangle for all elements in row 1.
   delete[] r4;   delete[] r4;
 }  }
cpp/object_lifecycle.txt · Last modified: 2021/05/07 06:35 (external edit)