What if the object was de-referenced in the newGame() function, something like:
Minefield minefield = new Minefield();
... ... ...
Minefield minefield2 = new Minefield();
minefield = minefield2;
Won't the first minefield object be de-referenced and deleted?
Or is it because there activation bar for the Minefield constructor is wrong and therefore the entire thing is wrong?
In Quiz 6 Qns 22, why this this False?
What if the object was de-referenced in the newGame() function, something like:
Won't the first minefield object be de-referenced and deleted? Or is it because there activation bar for the Minefield constructor is wrong and therefore the entire thing is wrong?