📄 ex8_35.txt
字号:
Example 8.35 FullTimeEmployeeImpl class
//FullTimeEmployeeImpl.java
package com.corej2eepatterns.business.impl;
import com.corej2eepatterns.business.hr.FullTimeEmployee;
import java.math.BigDecimal;
/**
* @author Craig Russell
*/
public class FullTimeEmployeeImpl
extends EmployeeImpl implements FullTimeEmployee {
private BigDecimal salary;
/** Creates a new instance of FullTimeEmployeeImpl */
public FullTimeEmployeeImpl(
long id, String firstName, String lastName) {
super(id, firstName, lastName);
}
public BigDecimal getSalary() {
return salary;
}
public void setSalary(BigDecimal salary) {
this.salary = salary;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -