public class Solution {
public static void main(String[] args) {
//write your code
Man man= new Man();
Woman woman=new Women();
}
public static class Man {
public int age;
public int height;
public Woman wife;
man.wife=Woman();
}
public static class Woman {
public int age;
public int height;
public Man husband;
woman.husband= Man();
} ;
}
hidden #10559160
Level 3
what's wrong?
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
hidden #10559160
23 November 2019, 16:11
i didn't have the hint.
0
Newerwinter
23 November 2019, 14:55
Delete lines man.wife=Woman(); and woman.husband= Man();
You must only write in main.
man.wife = woman;
woman.husband = man ; <- This was a hint in task.
0