Lab 6

Due 1:30PM March 5, 2007

  1. Implement a class Contact that keeps track of the name and phone number for a given person. Make sure to test your class appropriately.
  2. Implement a class PhoneBook that keeps track of a list of Contact objects. Provide methods to (1) add new contacts to the list, (2) view the list of contacts, and (3) remove a particular contact. The remove method will take as input a string representing the name of the contact to remove and will remove the appropriate Contact object. Make sure to test your class appropriately.


Sami Rollins