Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Singleton Classes

csbrmgcsbrmg Posts: 4Member
Question
Create a class were if multiple programs create an instance of the class on a single machine all the programs share the a single instance of the class


Problem
I am able to create a simple singleton where if a program creates more than one instance of the singleton class the 2 instances share the same instance but i cant get it to work for the case were multiple programs are opened all of which open a instance of the singleton class in this case each program has its own version of the singleton class
Sign In or Register to comment.