1 package com.triactive.jdo.test; 2 3 4 public class Employee extends Person 5 { 6 private String serialNo; 7 private float salary; 8 private Manager manager; 9 10 public Employee() 11 { 12 } 13 14 20 21 public Employee(long id, String firstname, String lastname, String email, 22 float sal, String serial) 23 { 24 super(id, firstname, lastname, email); 25 this.salary = sal; 26 this.serialNo = serial; 27 } 28 29 30 public String 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 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 |