How do you get a handle of the object which called your constructor?
For example... You have two objects, object1 and object2. object1 constructs a new instance of object2. object2 needs to get a handle on object1 to call one of object1's methods.
I KNOW there HAS to be a better way than passing the object into the constructor... there HAS to be a better (and cleaner) way of doing it. I just don't know what it is )
Thank you for your time... Liam Morley
lmorley@wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
For example... You have two objects, object1 and object2. object1 constructs a new instance of object2. object2 needs to get a handle on object1 to call one of object1's methods.
I KNOW there HAS to be a better way than passing the object into the constructor... there HAS to be a better (and cleaner) way of doing it. I just don't know what it is )
Thank you for your time... Liam Morley
lmorley@wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."