public?class?Team{
????public?Person?student?=?null?;
????public??Person?teacher?=?null
????public?static?class?Person{
????????public?String?name?=?null?;
????????public?String?age?=?null?;
????}
}代碼是整體類的大致結(jié)構(gòu),當(dāng)我通過某接口獲取到Team實(shí)例的時(shí)候,如何獲取到student的兩個(gè)值和teacher的兩個(gè)值?
添加回答
舉報(bào)
0/150
提交
取消