For this assignment you will create a simple contact manager application. This application will track personal information about the user’s friends and acquaintances. The user will be able to enter information for new contacts and also lookup information for a contact.
For this assignment you will create a simple class hierarchy. You will create an inheritance relationship between two classes — a Friend class and a Person class – Friend will inherit Person.
Your Person class will have the following attributes:
Your Friend class will have the following attributes:
Both your Person class and your Friend class will have a get_info method.
For the Person class, the get_info method will return a string with the full name and phone number of the person.
For the Friend class, the get_info method will return a string with the full name, phone number, email address, and birth date.
View original post 163 mots de plus