-
Notifications
You must be signed in to change notification settings - Fork 1
/
oop_UML
38 lines (36 loc) · 1.24 KB
/
oop_UML
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
+---------------------------------+
| Library |
+---------------------------------+
| - books: List[Book] |
| - members: List[Member] |
+---------------------------------+
| + add_book(book: Book): None |
| + remove_book(book: Book): None |
| + add_member(member: Member): None|
| + remove_member(member: Member): None|
| + display_books(): None |
| + display_members(): None |
+---------------------------------+
+-------------------------------+
| Book |
+-------------------------------+
| - title: str |
| - author: str |
| - ISBN: str |
+-------------------------------+
| + get_title(): str |
| + get_author(): str |
| + get_ISBN(): str |
| + display_info(): None |
+-------------------------------+
+-------------------------------+
| Member |
+-------------------------------+
| - member_id: str |
| - name: str |
| - books_checked_out: List[Book]|
+-------------------------------+
| + check_out_book(book: Book): None|
| + return_book(book: Book): None |
| + display_info(): None |
+-------------------------------+