文件名称://构造函数-JAVA自学教程(史上最全)
文件大小:9.22MB
文件格式:PPT
更新时间:2024-05-15 17:03:46
JAVA
//构造函数 public Manager(String _name, int _salary, String _department) { super(_name,_salary); department = _department; } public String getSalary() { return super.getSalary() + "\nDepartment: " + department; } }