Skip to Content
0
Former Member
Sep 22, 2008 at 03:57 PM

Objects to a class

28 Views

Hi All,

How can I restrict a class to have only one reference or object.

I have created a class and now I am creating objects(references) for this class.

Now I shouldnt be able to create more than one object to this class.

Please clarify my doubt.

Thanks,

Prasad