ex8_20.txt

来自「j2ee core design patterns」· 文本 代码 · 共 43 行

TXT
43
字号
Example 8.20 public interface Persistable {
}


public class Employee implements Persistable {
    protected String id;
    protected String firstName;
    protected String lastName;
    protected String ss;
    protected float salary;
    protected String divisionId;

    public Employee( String id ) {
        this.id = id;
    }

    public Employee(String id,
                    String lastName,
                    String firstName,
                    String ss,
                    float salary,
                    String divisionId) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.firstName = firstName;
        this.ss = ss;
        this.salary = salary;
        this.divisionId = divisionId;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?