Man man = new Man();
Woman woman = new Woman();
man.wife = women;
woman.husband = man;
how do I make a reference with the variables man.wife and woman.husband and then get my code to compile
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Clarence L Mackey
17 April 2019, 05:53
Hours later of intense effort only to find another typo. I really enjoy this. Thanks you very, very much.
Yes. It did compile.
Thanks again.
0
Hrvoje
16 April 2019, 15:23
You got a little typo in your code. In line 3 it should be "womAn" and you wrote "womEn". :)
+1