Hey guys,
I need to create a class, from which only one object can be created, and if there's an attempt to create another object of this class it gets the address of the first object (they'll both point at the same object..)
Can anyone help? thanks a lot!
Another way is to have a static member that will keep how many objects are created and to have another static object that will keep address of the first created object. Something as