Hello,
I have typed the following question 3 times in an effort to get it making sense.
What I want to know is this: Is it possible for an instance of objB to find out what instance of an objA is referencing it?
In particular, I want to be able to call a method from the referencing objA from objB. (Gee, I hope all that makes sense?!).
Just in case I have not explained myself using correct terminology, maybe this might help?
objA has instance variables of type objB.
class ObjectA {
ObjectB myobj = new ObjectB();
public void mymethodA(){
}
}
class ObjectB {
public void mymethodB(){
// Needs to call mymethodA of the referencing objA
}
}
Appreciate any help.
[ October 03, 2003: Message edited by: Simon Wellborne ]