01: /**
02: * Copyright (C) 2001-2004 France Telecom R&D
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package inheritance.horizontal.speedoid;
18:
19: import java.util.Date;
20:
21: /**
22: *
23: * @author S.Chassande-Barrioz
24: */
25: public class Worker extends Person {
26:
27: private String company;
28: private float salary;
29: private String jobName;
30:
31: public Worker() {
32: }
33:
34: public Worker(String firstname, String lastname, Address address,
35: Date birthdate, String jobName, String company, float salary) {
36: super (firstname, lastname, address, birthdate);
37: this .company = company;
38: this .salary = salary;
39: this .jobName = jobName;
40: }
41:
42: public String getCompany() {
43: return company;
44: }
45:
46: public void setCompany(String company) {
47: this .company = company;
48: }
49:
50: public float getSalary() {
51: return salary;
52: }
53:
54: public void setSalary(float salary) {
55: this .salary = salary;
56: }
57:
58: public String getJobName() {
59: return jobName;
60: }
61:
62: public void setJobName(String jobName) {
63: this.jobName = jobName;
64: }
65:
66: }
|