...
/Class Diagram for the Amazon Online Shopping System
Class Diagram for the Amazon Online Shopping System
Learn to create a class diagram for Amazon using the bottom-up approach.
In this lesson, we’ll identify and design the classes, abstract classes, and interfaces based on the requirements we previously gathered from the interviewer in our Amazon shopping system.
Components of Amazon
As mentioned, we should design the Amazon online shopping system using a bottom-up approach.
Customer
The Customer abstract class refers to a user searching for a product on Amazon.
A customer can be one of the following:
Authenticated users
Guest users
The details of these are given below:
The
AuthenticatedUserclass refers to an individual with a registered Amazon account.The
Guestclass refers to an individual without an account who can only search for and view the products on the Amazon website. However, they need to register for an account on Amazon to place an order.
The class diagram of all these is provided below:
Admin
The Admin class refers to an individual with a registered account on Amazon who can add, modify, or delete product categories and block users.
Account
The Account class accesses and showcases the personal details of the authenticated user and the admin, the two types of registered accounts available in the system. Users with an account can add and delete products and product reviews.
Product
The Product class contains the details of a particular product on the Amazon shopping store. Each product falls under a specific category on Amazon and can have none, one, or more reviews.
Product category
The ProductCategory class contains the names and descriptions of Amazon’s various product categories and a reference to the list of products in each ...