-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathWalkthough.puml
More file actions
62 lines (43 loc) · 1.11 KB
/
Walkthough.puml
File metadata and controls
62 lines (43 loc) · 1.11 KB
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
56
57
58
59
60
61
62
@startuml
'https://plantuml.com/class-diagram
abstract class Person {
-id: int
-firstName: String
-lastName: String
-email: String
+Person(id: int, firstName: String, lastName: String, email: String)
{abstract} +getSummary(): String
+getId(): int
+getFirstName(): String
+getLastName(): String
+getEmail(): String
}
class Student {
-gradeLevel: int
-gpa: double
+Student(id: int, firstName: String, lastName: String, email: String,
gradeLevel: int, gpa: double)
+getSummary(): String
+isOnHonorRoll(): boolean
+getGradeLevel(): int
+getGpa(): double
}
class Instructor {
-department: String
-assignedStudents: List<Student>
+Instructor(id: int, firstName: String, lastName: String, email: String,
department: String)
+getSummary(): String
+createAnnouncement(message: String): void
+addStudent(student: Student): void
+printRoster(): void
+getDepartment(): String
}
class Main {
+main(args: String[]): void
}
Person <|-- Student
Person <|-- Instructor
Instructor "1" o-- "*" Student : assignedStudents
Main --> Person : List<Person>
@enduml