daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Feb 14th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package model;
  2.  
  3. public class Person {
  4.  
  5.     private int id;
  6.     private String name;
  7.     private String surname;
  8.     private int birthYear;
  9.  
  10.     public Person(String name, String surname, int birthYear) {
  11.         super();
  12.         this.name = name;
  13.         this.surname = surname;
  14.         this.birthYear = birthYear;
  15.     }
  16.  
  17.     public int getId() {
  18.         return id;
  19.     }
  20.  
  21.     @Override
  22.     public String toString() {
  23.         return "Person [id=" + id + ", name=" + name + ", surname=" + surname + ", birthYear=" + birthYear + "]";
  24.     }
  25.  
  26.     public void setId(int id) {
  27.         this.id = id;
  28.     }
  29.  
  30.     public String getName() {
  31.         return name;
  32.     }
  33.  
  34.     public void setName(String name) {
  35.         this.name = name;
  36.     }
  37.  
  38.     public String getSurname() {
  39.         return surname;
  40.     }
  41.  
  42.     public void setSurname(String surname) {
  43.         this.surname = surname;
  44.     }
  45.  
  46.     public int getBirthYear() {
  47.         return birthYear;
  48.     }
  49.  
  50.     public void setBirthYear(int birthYear) {
  51.         this.birthYear = birthYear;
  52.     }
  53.  
  54. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top