CS 117: Introduction to Computer Science

Assignment 1: Object-Oriented Thinking, Part 2.

Plese turn in your answer to the following on paper.

Match.com is a popular website for finding dates. Construct a class/object model that the website might use behind the scenes. Include a class to represent a Person, and make sure that you are able to store the information that match.com asks for on its home page. Use inheritance in your class diagram to handle both people that store photos of themselves and people that do not. Also include a class called MatchMaker, that contains a method which takes two Persons as parameters and returns a value indicating whether or not they are a good match.

Think carefully about whether the above information and methods should be associated with the class or with objects. Make sure to instantiate at least two objects in your diagram.