Hi guys so 2 classes need to share information.
Class A has information class B needs to modify, and it should also modify class A's data as well.
Currently this is how its done:
Code:class A { int data; B b; public: void startUp(); } Class B{ initParms(int &); } A::StartUp() { b.InitParms(data) }
As you can see this is how they are sharing data...but is this the best way about doing this or is there a better way?
Thanks