Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 system

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

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions