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
+ "]";
}
}
*質問: *さて、print Manager[name=...,salary=...,hireDay=...,][bouns=...] を実行するにはどうすればよいですか?