Rod Anderson
Member
10.2A Linux
(New to OO)
I have a working class that audit's information being sent to an external 'c' program (not really relevant). The problem is I need to shared the instance of the class between two programs (program A calls B several times).
To accomplish this I created and static variable for the class that instantiates the class as NEW and an internal static method which program A and B just use (if I'm saying that right). I really don't think I want or need the entire class to be static.
Assuming I'm doing it wrong what is the proper way to handle this situation?
Thanks in advance,
Rod
(New to OO)
I have a working class that audit's information being sent to an external 'c' program (not really relevant). The problem is I need to shared the instance of the class between two programs (program A calls B several times).
To accomplish this I created and static variable for the class that instantiates the class as NEW and an internal static method which program A and B just use (if I'm saying that right). I really don't think I want or need the entire class to be static.
Assuming I'm doing it wrong what is the proper way to handle this situation?
Thanks in advance,
Rod