Hello all,
I have a question regarding the use of object pointers and whether its the proper way to do things.
In the main function, i would like to create 1 object call Entry.
I want the Entry Object to create 2 different objects called E1 and E2.
Is there anyway i can pass the Entry Object's pointer to both of these objects, So they can directly call each others functions?
So for example, I want E1 to be able to call Entry.E2.updateInt(). None of their functions are similar either.
Is this the proper way of doing things?
You can sort of do that if you need to. Why do you want to do that?
It's often best to keep things simple.