Why did you give the answer to a part of it in the requirements:
Save a reference to the previously created Man object in woman.husband (Hint: woman.husband = man).
I don't understand what saving the reference does. Could you please explain?
Uhlnoor
Level 2
Still don't understand...
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
bob
16 May 2020, 12:07
maybe i don't understand your question, but the point seems to me to be to create a connection between two different objects. im' sure they give a bit of the answer to help newcomers with syntax until they get further advanced.
0
Ashish RajAnand
13 May 2020, 05:07
please refer you class Man and Women which was created .
Woman woman =new Woman();
creates object of woman where your code all the variable created amd also Man husband;
here we use our woman object to store man variable in husband .
like that woman.husband=man;
0