3 ms·
It's an object lifecycle concept. You worry about ownership if you have a resource and need to think of when to free/dispose/close it. You worry about ownersh
by kzrdude 6y ago
It's an object lifecycle concept.
You worry about ownership if you have a resource and need to think of when to free/dispose/close it.
You worry about ownership if you have an object that many have a reference to, and some of the references shouldn't keep the associated resources alive, and some other of the references should keep it alive. Those that keep things they referenced alive are (shared) owners.