Created
November 17, 2014 09:39
-
-
Save yassaa/219429497d15e5ed168d to your computer and use it in GitHub Desktop.
User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test_Bookingsystem; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.util.Scanner; | |
public class User { | |
//Attributes | |
private String Name; | |
private String Email; | |
private long Phonenumber; | |
//Constructor | |
public User(String Name, String Email, long Phonenumber){ | |
this.Name = Name; | |
this.Email = Email; | |
this.Phonenumber = Phonenumber; | |
} | |
//Getters | |
public String getName(){ | |
return Name; | |
} | |
public String getEmail(){ | |
return Email; | |
} | |
public long getPhonenumber(){ | |
return Phonenumber; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment