is this a pattern?

From: Karl Hungus (nnnnndddddd_at_hotmail.com)
Date: 03/16/04


Date: Tue, 16 Mar 2004 15:16:00 GMT

Sometimes I use a static collection in a class to store instances of that
class. Everytime I instantiate it, a reference to the instance is stored in
the static collection. This way I dont have to use a manager class of any
kind to deal with all the instances.

Is this a pattern? good/bad OOD?

-TIA
Karl



Relevant Pages

  • Re: is this a pattern?
    ... Everytime I instantiate it, a reference to the instance is stored in ... > the static collection. ... Observer pattern ...
    (comp.object)
  • Re: is this a pattern?
    ... > Sometimes I use a static collection in a class to store instances of that ... Everytime I instantiate it, a reference to the instance is stored ... > the static collection. ...
    (comp.object)
  • Re: is this a pattern?
    ... a reference to the instance is stored in ... It is very common ... explicit destructor the references in the static collection never go ... it is commonly used in conjunction with the Factory ...
    (comp.object)