Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using the simplified OOD methodology: Write down a detailed description of the p

ID: 3662004 • Letter: U

Question

Using the simplified OOD methodology: Write down a detailed description of the problem. Identify all the (relevant) nouns and verbs. From the list of nouns, select the objects. Identify the data components of each object. From the list of verbs, select the operations. Write a short paper in response to the following prompt: Your local police department wants to design new software to keep track of people, property, and criminal activity. List at least three classes you think should be in the design. For each class, identify some data members and methods.

Explanation / Answer

Data members are going to be things your object keeps track of. They are generally nouns. If you have a Person object, then Name might be a data member - it's something each person has and that your program needs to keep track of. Your Property class and your Person class might both have Address as a data member.

Methods are verbs. They're what the object does. "Search" would be an example of a verb that would probably be a method.

I would not make Name a class. A name is just a string. You would want a Person class, or a Suspect class, or something, and Name would be a data component.

"Activity" as a class makes sense from a logical perspective, but calling it that might be a bit confusing because it's so vauge. Maybe Crime? Or CriminalActivity? That gives a better indication of exactly what sort of "activity" we are talking about.