01: package com.triactive.jdo.test;
02:
03: public class Employee extends Person {
04: private String serialNo;
05: private float salary;
06: private Manager manager;
07:
08: public Employee() {
09: }
10:
11: /* public Employee(Manager mgr, float s, String sn)
12: {
13: manager = mgr;
14: salary = s;
15: serialNo = sn;
16: }*/
17:
18: public Employee(long id, String firstname, String lastname,
19: String email, float sal, String serial) {
20: super (id, firstname, lastname, email);
21: this .salary = sal;
22: this .serialNo = serial;
23: }
24:
25: public String getSerialNo() {
26: return this .serialNo;
27: }
28:
29: public float getSalary() {
30: return this .salary;
31: }
32:
33: public Manager getManager() {
34: return this .manager;
35: }
36:
37: public void setManager(Manager mgr) {
38: this .manager = mgr;
39: }
40:
41: public void setSerialNo(String sn) {
42: this .serialNo = sn;
43: }
44:
45: public void setSalary(float s) {
46: this.salary = s;
47: }
48:
49: }
|