-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.java
More file actions
33 lines (24 loc) · 757 Bytes
/
User.java
File metadata and controls
33 lines (24 loc) · 757 Bytes
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
public class User {
String name;
int age;
long phoneNo;
String email;
String accountNumber;
String accountPassword;
Account account;
static boolean isLoggedin = false;
User(String name, int age, long phoneNo, String email){
this.name = name;
this.age = age;
this.phoneNo = phoneNo;
this.email = email;
this.accountNumber = null;
this.accountPassword = null;
}
User(String name, int age, long phoneNo, String email, String accountNumber, String accountPassword, Account account){
this(name, age, phoneNo, email);
this.accountNumber = accountNumber;
this.accountPassword = accountPassword;
this.account = account;
}
}