- Create a ContactsManager class and create instance of that class called myContactsManager using the default constructor
- Create a new Contact class
- Set the name to a friend's name
- Set the phoneNumber field to their phone number
- Call the addContact method in myContactsManager to add that contact
- Repeat steps 2 and 3 for 4 more contacts
- Search for a contact using the method searchContact and print out their phone number
AselEsra/ContactsManager
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|