Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Martin and Diane are working on a class diagram for the bike share system. Their class diagram has a bike class. Now they want to

Martin and Diane are working on a class diagram for the bike share system. Their class diagram has a bike class. Now they want to represent the requirement that bikes can either be rented or available. Martin suggests that this needs to be shown in a state diagram (with rented and available as states of a bike). But Diane suggests that they need to create these two as sub-classes of the bike class (i.e. as an inheritance hierarchy rented bike and available bike as two child classes of the super class bike, rather than as states. Who do you agree with? Justify your answer.

2.2 Consider the work completed in Part 1, 1.3 through 1.6. What 3 steps would you take to test your work? Briefly describe the tests, why the test is important i.e. purpose, and how you would implement / complete the test with regards to your UML work. Your answer goes here.

image text in transcribedimage text in transcribed

2.1: Martin and Diane are working on a class diagram for the bike share system Their class diagram has a bike class. Now they want to represent the requirement that bikes can either be rented or available. Martin suggests that this needs to be shown in a state diagram (with rented and available as states of a bike). But Diane suggests that they need to create these two as sub-classes of the bike class (i.e. as an inheritance hierarchy - rented bike and available bike as two child classes of the super class bike, rather than as states. Who do you agree with? Justify your answer. Answer: Martin's diagram System allows Diane's diagram Custom erRenting BikeID 1 Customer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

Borrowing is a double-edged sword. Do you agree? Explain.

Answered: 1 week ago