Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1.  
  2. package phonebook;
  3.  
  4. import javafx.beans.property.SimpleStringProperty;
  5.  
  6.  
  7. public class Person {
  8.    
  9.     private final SimpleStringProperty firstName;
  10.     private final SimpleStringProperty lastName;
  11.     private final SimpleStringProperty email;
  12.    
  13.     public Person() {
  14.         this.firstName = new SimpleStringProperty("");
  15.         this.lastName = new SimpleStringProperty("");
  16.         this.email = new SimpleStringProperty("");
  17.     }
  18.    
  19.     public Person(String fname, String lName, String email) {
  20.         this.firstName = new SimpleStringProperty(fname);
  21.         this.lastName = new SimpleStringProperty(lName);
  22.         this.email = new SimpleStringProperty(email);
  23.     }
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement