ex8_35.txt
来自「j2ee core design patterns」· 文本 代码 · 共 30 行
TXT
30 行
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 + =
减小字号Ctrl + -
显示快捷键?