-
Notifications
You must be signed in to change notification settings - Fork 0
/
Account.java
55 lines (47 loc) · 1.14 KB
/
Account.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package C212Amazon;
/**
* Account
* abstract class that represents accounts
* Nicholas de la Espriella
* 4/13/2017
*/
public abstract class Account {
// Parameters
private int uniqueID; // Unique ID of the account.
private String userName; // Username
private String password; // Password
private String emailAddress; // Email
// constructor
public Account(int uniqueID, String username, String password, String emailAddress) {
this.uniqueID = uniqueID;
this.userName = username;
this.password = password;
this.emailAddress = emailAddress;
}
/**
* returns a unique ID
* @return uniqueID.
*/
public int getUniqueID(){
return uniqueID;
}
/**
* returns a user name
* @return username.
*/
public String getUserName() { return userName; }
/**
* returns a password
* @return password.
*/
public String getPassword() {
return password;
}
/**
* returns an email address
* @return emailAddress.
*/
public String getEmailAddress() {
return emailAddress;
}
}