?? engineer.java
字號(hào):
package com.totyuedu.c69.a20080829;
public class Engineer extends Employee {
private float gongshu;
public Engineer(String name, int age, double salary, String tel,
String address, String position, String department, String boss) {
super(name, age, salary, tel, address, position, department, boss);
}
// the constructor with gongshu
public Engineer(String name, int age, double salary, String tel,
String address, String position, String department, String boss,
float gongshu) {
super(name, age, salary, tel, address, position, department, boss);
this.gongshu = gongshu;
}
public float getGongshu() {
return gongshu;
}
public void setGongshu(float gongshu) {
this.gongshu = gongshu;
}
// 年消化人月數(shù)×300+月薪×2.5
public double getBonus() {
return getGongshu() * 300 + getSalary() * 2.5;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -