simple contact manager application Python

HOMEWORK SOLUTIONS!

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:

first_name
last_name
phone_number
Your Friend class will have the following attributes:

email
birth_date
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

Advertisements

Laisser un commentaire

Choisissez une méthode de connexion pour poster votre commentaire:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Image Twitter

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Photo Google+

Vous commentez à l'aide de votre compte Google+. Déconnexion / Changer )

Connexion à %s