Hussein Al-Shatri a écrit : > Hi all > > I made a container to save names. but the problem that because I initialized > this container in the class , each name uses an object of this class which > will use a new container. But i want this container to be initialized and > takes a place in the memory only one time to save all names. > > could u give me any idea. >
what you want is not clear to me. a static member ? or a singleton container ? or flyweigth pattern ? David
