Question
Figure Q4 illustrates a Unified Modelling Language (UML) class diagram of a train system. This diagram illustrates interactions between object classes in describing a software
Figure Q4 illustrates a Unified Modelling Language (UML) class diagram of a train system. This diagram illustrates interactions between object classes in describing a software
implementation of a train system. Answer the following:
i. Determine the object classes ofthis system,
ii. Describe the relationship between the classes in Figure Q4.
iii. A new class, Hybrid Battery is to be added into Figure Q4. This class is inherited from class Train. This class also has two new member functions, which are Increase BatteryInput() and Reduce Battery Input(). Two other classes, which are Heavy Cargo Train and MRT Train inherits from class Hybrid Battery. Extend Figure Q4 to include classes Hybrid Battery, Heavy Cargo Train and MRT Train, as per the abovementioned specifications. You need not redraw the entire Figure Q4. Just focus on the new classes and its relationship to the current class (or classes) in Figure Q4.
Figure Q4: UML class diagram of a train systemStep 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