Quote Originally Posted by CornedBee
Your code cannot possibly compile as it is. Your switch is a mess and is missing the case keyword. You keep using the mA and mB objects like functions even though they have no function call operator. I have no idea what you want to do.

Aside from that, I think you presented the problem in too abstract terms.
Well, I didn't put all the functions and all the variables of the classes. Also I didn't type case to simplify the code (I'm just too lazy to type case over and over. it's past my working hour and I'm rather reluctant to do anything beside going to bed. ). Okay so to put it bluntly, I'll change my question to: How do I make 2 objects from 2 different classes that can know each other's change of value?