- Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathUser.java
More file actions
Latest commit
33 lines (26 loc) · 588 Bytes
/
Copy pathUser.java
File metadata and controls
33 lines (26 loc) · 588 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
packageu025;
/**
* Abstract Colleague
* Created by HuGuodong on 12/8/19.
*/
publicabstractclassUser {
protectedStringid;
protectedStringname;
protectedIChatRoommediator;
publicUser(IChatRoommediator, Stringid, Stringname){
this.mediator = mediator;
this.id = id;
this.name = name;
}
publicabstractvoidsend(Stringmsg, StringtoUserId);
publicabstractvoidreceive(Stringmsg);
publicStringgetId() {
returnid;
}
publicStringgetName() {
returnname;
}
publicIChatRoomgetMediator() {
returnmediator;
}
}