1 18 package org.objectweb.speedo.pobjects.inheritance.horizontal; 19 20 import java.util.Date ; 21 22 26 public class Person { 27 private long personid; 28 private String firstname; 29 private String lastname; 30 private Address address; 31 private Date birthdate; 32 private String jobName; 33 34 public Person() { 35 } 36 37 public Person(String firstname, 38 String lastname, 39 Address address, 40 Date birthdate, 41 String jobName) { 42 this.firstname = firstname; 43 this.lastname = lastname; 44 this.address = address; 45 this.birthdate = birthdate; 46 this.jobName = jobName; 47 } 48 49 public String getFirstname() { 50 return firstname; 51 } 52 53 public void setFirstname(String firstname) { 54 this.firstname = firstname; 55 } 56 57 public String getLastname() { 58 return lastname; 59 } 60 61 public void setLastname(String lastname) { 62 this.lastname = lastname; 63 } 64 65 public Address getAddress() { 66 return address; 67 } 68 69 public void setAddress(Address address) { 70 this.address = address; 71 } 72 73 public Date getBirthdate() { 74 return birthdate; 75 } 76 77 public void setBirthdate(Date birthdate) { 78 this.birthdate = birthdate; 79 } 80 81 public String getJobName() { 82 return jobName; 83 } 84 } 85 | Popular Tags |