-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.java
More file actions
28 lines (22 loc) · 719 Bytes
/
Copy pathMain.java
File metadata and controls
28 lines (22 loc) · 719 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
import java.time.LocalDate;
public class Main {
public static void main(String[] args) {
Project p = new Project(
"My Project",
"Testing compile",
LocalDate.now(),
LocalDate.now().plusDays(10)
);
TeamMember m = new TeamMember("Hari", "hari@example.com");
m.addRole(new PMRole());
Task t = new HighPriorityTask(
"Fix Bug",
"Fix the login issue",
LocalDate.now().plusDays(2)
);
p.addTask(t);
p.addTeamMember(m);
System.out.println("Project: " + p.getName()
+ " has " + p.getTasks().size() + " tasks.");
}
}