"pramod" <sp********@yahoo.com> wrote in message
news:c6**************************@posting.google.c om...
Has anybody come across any pattern to create a static class member
that can be shared across group of objects ?
I understand this can be achieved (thru factory method), by
referencing the (simulated) shared member thru member pointer or
reference.
Is there any better approach ?
regards,
Pramod
try singleton. generally used to make a single instance of an object
available to an entire application or module. in the case of single class
requiring access, the singleton methods could be made private static to the
class.
hth
tom