Circular Dependency Experiment
Interview with the objects using the Setter method...
Interviewing obj1...
Q: What is your name?
A: My name is
Object 1!
Q: What is your dependent object's name?
A: My dependent object's name is
Object 2!
Interviewing obj2...
Q: What is your name?
A: My name is
Object 2!
Q: What is your dependent object's name?
A: My dependent object's name is
Object 1!
Q: Can you change your dependent object's name?
A: I don't know...let's give it a try, shall we?
(lots of grunting and straining sounds can be heard...)
I think I did it! My dependent object's name is NOW
Eduardo!
Interviewing obj1 again...
Q: What is your name NOW, obj1?
A: My name is
Eduardo!
Q: Why don't you go ahead and try to change YOUR dependent object's name...
A: Sure thing!
My dependent object's new name is
Florence. He he he he he.
Interviewing obj2 again...
Q: Obj2, is that really your new name?
A: Lemme check...
Florence...yep!
Interview with the objects using the constructor argument method...
Interviewing objA...
Q: What is your name?
A: My name is
object A!
Q: What is your dependent object's name?
A: My dependent object's name is
object B!
Interviewing objB...
Q: What is your name?
A: My name is
object B!
Q: What is your dependent object's name?
A: My dependent object's name is
object A!
Q: Can you change your dependent object's name?
A: I don't know...let's give it a try, shall we?
(lots of grunting and straining sounds can be heard...)
I think I did it! My dependent object's name is NOW
Rumpelstiltskin!
Interviewing objA again...
Q: What is your name NOW, objA?
A: My name is
Rumpelstiltskin!
Q: Why don't you go ahead and try to change YOUR dependent object's name...
A: Sure thing!
My dependent object's new name is
Genevieve. He he he he he.
Interviewing objB again...
Q: Obj2, is that really your new name?
A: Lemme check...
Genevieve...yep!
One Final Deep Question for obj1...
Q: Obj1, what is the name of your dependent object's dependent object's dependent object's dependent object?
A: It's name is
Florence