I am creating this library where the structure is like that :
Partent : - available to the user
class1: can perform requests from parent (not a subclass)
class2: can perform requests from parent (not a subclass)
The thing is , all these classes(1,2), and parent, should share some variables during the time they run,
so if there is a floats array declared in the parent, all other classes should be able to assign values to it, or read it any time.
Is there a simple way of doing this ? do I have to use a singleton to share data ?
If I am going to pass this array between them, its going to be a really big mess .