static void say(Parents i){
i.say(Home.father);
i.say(Home.mother);
}
这个函数被调用两次,结果不就重了吗.如果我会错了意,请把完整输出结果列出来.
在子类中使用super.xxx();即可调用protected & public级别的method.
i.say(Home.father);
i.say(Home.mother);
}
这个函数被调用两次,结果不就重了吗.如果我会错了意,请把完整输出结果列出来.
在子类中使用super.xxx();即可调用protected & public级别的method.
j.say(Home.son)和j.say(Home.daughter)也是