0% found this document useful (0 votes)
7 views9 pages

03 - UML - Relationships and Multiplicity

The document discusses the Unified Modelling Language (UML) focusing on relationships and multiplicity in the context of designing an object-oriented system for a game store. It outlines the requirements for managing game inventory, customer accounts, and shopping cart functionalities. Additionally, it describes the classes involved, their relationships, and the multiplicity of those relationships in the system.

Uploaded by

markezekiel94
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

03 - UML - Relationships and Multiplicity

The document discusses the Unified Modelling Language (UML) focusing on relationships and multiplicity in the context of designing an object-oriented system for a game store. It outlines the requirements for managing game inventory, customer accounts, and shopping cart functionalities. Additionally, it describes the classes involved, their relationships, and the multiplicity of those relationships in the system.

Uploaded by

markezekiel94
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

UNIFIED

MODELLING
LANGUAGE
(UML)
Relationships and Multiplicity

Unified Modelling Language 1


Association

Shows that one class is connected to another class.

Unified Modelling Language 2


Identify the Classes and its relationships in the
following case.
Description
You have been tasked with designing and implementing an object-oriented system for a game store. The system
should handle the management of a game inventory, allow customers to browse and purchase games.
Requirements
• Game Inventory. The system should maintain a catalogue of video games with details such as a unique game ID,
title, description, price, and platform (e.g., PC, Xbox, PlayStation).
• Customer Accounts. Customers should be able to create accounts, log in, and manage their personal information.
There are two types of customers, premium and basic. Premium customers get a 5% discount on their purchases,
while basic members do not get a discount.
• Browsing and searching. Customers should be able to browse games by title and rating.
• Shopping cart. Customers should be able to add games to their carts, and update quantities.

Object-Oriented Programming 3
Classes Relationships
• Games • Users can search the game catalogue
• Users • Users can add games to their cart.
• Cart • Cart contains the games users intend to
purchase

Object-Oriented Programming 4
Object-Oriented Programming 5
Object-Oriented Programming 6
Multiplicity

It shows how many instances of one class can be associated with another class.

1 Only one

0…1 Zero or one

* Many

0…* Zero or many

1…* One or many

Unified Modelling Language 7


Identify the multiplicity in the diagram
Relationships

• A user can search the game


catalogue
• A user can add games to their
cart.
• Cart contains the games users
intend to purchase

Object-Oriented Programming 8
Object-Oriented Programming 9

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy