Man man=new Man();
Woman woman=new Woman();
woman.husband=man;
man.wife=woman;
}
public static class Man {
public int age;
public int height;
public Woman wife;
}
public static class Woman {
public int age;
public int height;
public Man husband;
}
评论 (3)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
Motet
24 一月 2021, 06:32
Man man = new Man();
Woman woman = new Woman();
man.wife=woman;
woman.husband=man;
0
sho c k y lo v e Shocklove
12 十一月 2020, 15:14
This answer is half right
0
Guadalupe Gagnon
26 十二月 2019, 14:46
cant help unless you share solution
0