As we known, when we declare a member of a class as static it means no matter how many objects of the class are created, there is only one copy of the static member. A static member is shared by all objects of the class.
But I want to create two indenpent objects from such class. Maybe I can create two objects at different process? Is there any other way?
AND OTHER: Maybe this demand is strange. Because I need to use a third party library, and I can't modify it.
Aucun commentaire:
Enregistrer un commentaire