-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPost.java
More file actions
52 lines (37 loc) · 943 Bytes
/
Post.java
File metadata and controls
52 lines (37 loc) · 943 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import java.util.*;
import java.lang.*;
import java.io.*;
class Post {
private String topic;
private Date dateCreated;
private Date lastupdate;
private boolean isAllowed;
public String getTopic() {
return topic;
}
public void setTopic(String topic) {
this.topic = topic;
}
public void setDateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
}
public Date getLastupdate() {
return lastupdate;
}
public void setLastupdate(Date lastupdate) {
this.lastupdate = lastupdate;
}
public boolean isIsAllowed() {
return isAllowed;
}
public void setIsAllowed(boolean isAllowed) {
this.isAllowed = isAllowed;
}
public void comment(){}
public void rate(){}
public void share(){}
public static void main(String[] args) throws
java.lang.Exception {
}
}