Question
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.
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 CustomerStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started