KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > test > Employee


1 package com.triactive.jdo.test;
2
3
4 public class Employee extends Person
5 {
6     private String JavaDoc serialNo;
7     private float salary;
8     private Manager manager;
9
10   public Employee()
11   {
12   }
13
14 /* public Employee(Manager mgr, float s, String sn)
15   {
16     manager = mgr;
17     salary = s;
18     serialNo = sn;
19   }*/

20
21   public Employee(long id, String JavaDoc firstname, String JavaDoc lastname, String JavaDoc email,
22                   float sal, String JavaDoc serial)
23   {
24       super(id, firstname, lastname, email);
25       this.salary = sal;
26       this.serialNo = serial;
27   }
28
29
30   public String JavaDoc getSerialNo()
31   {
32       return this.serialNo;
33   }
34
35   public float getSalary()
36   {
37       return this.salary;
38   }
39
40   public Manager getManager()
41   {
42       return this.manager;
43   }
44
45   public void setManager(Manager mgr)
46   {
47       this.manager = mgr;
48   }
49
50   public void setSerialNo(String JavaDoc sn)
51   {
52       this.serialNo = sn;
53   }
54
55   public void setSalary(float s)
56   {
57       this.salary = s;
58   }
59
60 }
61
Popular Tags