Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.20 KB | None | 0 0
  1.     public User(String firstName, String lastName) {
  2.         this.firstName = firstName;
  3.         this.lastName = lastName;
  4.     }
  5.  
  6.     public User(String firstName, String lastName, String address) {
  7.         this.firstName = firstName;
  8.         this.lastName = lastName;
  9.         this.address = address;
  10.     }
  11.  
  12.     public User(String firstName, String lastName, int age) {
  13.         this.firstName = firstName;
  14.         this.lastName = lastName;
  15.         this.age = age;
  16.     }
  17.  
  18.     public User(String firstName, String lastName, String address, String phoneNumber) {
  19.         this.firstName = firstName;
  20.         this.lastName = lastName;
  21.         this.address = address;
  22.         this.phoneNumber = phoneNumber;
  23.     }
  24.  
  25.     public User(String firstName, String lastName, String address, int age) {
  26.         this.firstName = firstName;
  27.         this.lastName = lastName;
  28.         this.address = address;
  29.         this.age = age;
  30.     }
  31.  
  32.     public User(String firstName, String lastName, String address, String phoneNumber, int age) {
  33.         this.firstName = firstName;
  34.         this.lastName = lastName;
  35.         this.address = address;
  36.         this.phoneNumber = phoneNumber;
  37.         this.age = age;
  38.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement