class Employee {
public String toString() {
reuturn getClass().getName()
+ "[name=" + name
+ ",salary" + salary
+ ",hireDay" + hireDay +"]";
}
}
class Manager extends Employee {
public String toString() {
return super.toString()
+ "[bouns=" + bouns
+ "]";
}
}
問題* Quetion: *現在,該怎麼辦打印管理器[名稱= ...,工資= ...,hireDay = ...] [BOUNS =。 ..]?有關Java初學者
最終你是什麼意思? – skuntsel 2013-03-05 17:20:41