Practice Questions.pdf - Object-oriented analysis You are...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Object-oriented analysis You are designing an application to help manage recorded GPS (Global Positioning System) data. A location has a latitude and longitude. A track is a named sequence of up to 10000 locations. A waypoint is a named location. A trip is a named collection of possibly track(s), waypoint(s), and other trip(s). (a) [3] Draw a well-designed UML class diagram to represent these entities in the data model for the application. Provide the correct object-oriented abstractions, relationships, attributes, and multiplicities. State any further assumptions, and highlight their appearance in the diagram.
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 (b) [2] Accordingly, write correct skeletal Java code for these entities in the data model of the application. Include all abstractions, relationships, attributes, and basic public methods. For example, named entities should have a public getName method.
Image of page 2
3 Object-oriented design [1] Suppose a system event log contains events, with just the need to append and iterate over events. A potential software design has corresponding Log and Event classes. A developer decides to have Log inherit from ArrayList<Event> . Give two different reasons that clearly explain why this may not be an appropriate software design decision. (Giving an alternative design by itself is not a
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern