Advertisement
Guest User

Untitled

a guest
Jun 26th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. public class Person {
  2.     private String firstName;
  3.     private String lastName;
  4.  
  5.     public Person(String firstName, String lastName) {
  6.         this.firstName = firstName;
  7.         this.lastName = lastName;
  8.     }
  9.  
  10.     public String getFirstName() {
  11.         return firstName;
  12.     }
  13.  
  14.     public void setFirstName(String firstName) {
  15.         this.firstName = firstName;
  16.     }
  17.  
  18.     public String getLastName() {
  19.         return lastName;
  20.     }
  21.  
  22.     public void setLastName(String lastName) {
  23.         this.lastName = lastName;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement