|
|
|
|
16
|
## Instructions:
|
16
|
## Instructions:
|
17
|
|
17
|
|
18
|
### Building a basic `PhoneBook` class
|
18
|
### Building a basic `PhoneBook` class
|
19
|
-
|
|
|
|
|
19
|
+<img src = "./PhoneBookUML.png">
|
20
|
* Create a `PhoneBook` class that holds names and phone numbers.
|
20
|
* Create a `PhoneBook` class that holds names and phone numbers.
|
21
|
* You can use an [associative data type](https://en.wikipedia.org/wiki/Associative_array) (one which stores items as keys paired with values).
|
21
|
* You can use an [associative data type](https://en.wikipedia.org/wiki/Associative_array) (one which stores items as keys paired with values).
|
22
|
* **Hint:** You should use a sorted map.
|
22
|
* **Hint:** You should use a sorted map.
|
23
|
-* A UML of this class can be found [here](./PhoneBookUML.png)
|
|
|
|
|
23
|
+
|
24
|
|
24
|
|
25
|
* Your PhoneBook class should have the following method
|
25
|
* Your PhoneBook class should have the following method
|
26
|
|
26
|
|