It depends on what your application is doing. In general I don't think it's useful to have a list of every instance created of a particular class. It plays havoc on memory management systems because...
Type: Posts; User: helloworld922
It depends on what your application is doing. In general I don't think it's useful to have a list of every instance created of a particular class. It plays havoc on memory management systems because...
First scenario:
The Person class represents a single person. Why should it have to keep track of every Person which has been instantiated? It shouldn't. Different people are going to be...