Question
Draw class diagram for online shopping system. Make necessary assumptions.
Answer :
Word Count : 576
In an online shopping system, the main objective is to create a design that allows users to browse, select, and purchase items through an e-commerce platform. The system involves multiple stakeholders such as customers, products, orders, and payment processes. To illustrate the structure of the system, we can design a class diagram that captures the key components and their relationships.
Classes and their Relationships:
-
Customer
- Attributes:
customerID: Stringname: Stringemail: Stringaddress: StringphoneNumber: String
- Methods:
register(): Allows a new customer to create an account.login(): Allows a customer to log into their account.viewCart(): Allows a customer to view the items in their shopping cart.placeOrder(): Initiates an order placement.makePayment(): Makes a payment for the order.
- Attributes:
-
Product
- Attributes:
productID: Stringname: Stringdescription: Stringprice: Floatstock: _______ ______ ________ ___ ______ _________ ____ ___ ___ __________ ______.
_____ __________ _________ _________ ___ ____ ____ __________ _____ _____ _____.
________ ___ _____ ____ __________ _________ ___ __________ ________ _________.
_________ ________ _________ _______ __________.
________ ________ _______ _____ ________ __________ ___ ___ ______ _____ ________ _________.
______ _________ ____ __________ _____ _______ ___ __________ ______ ___ ________ ___.
_________ _______ _________ ___ _______ ______.
__________ _______ __________ ______ _______ ____ ____ _________ _________.
______ _______ __________ _____ _____ ________.
______ _________ ___ ______ _______ ______ ______ _________ ________.
___ ______ ___ _______ _____ __________ ________ ____ ________ _______ _____ _______.
_____ ________ ________ _______ __________ _________ __________.
__________ __________ _________ _______ ___ ________ ______ _________ _______ ___.
_____ ____ __________ ________ _________ _______ _________ _________ _________.
________ ________ __________ ____ _______.
______ ________ ______ ____ ____ ______ ______.
_________ ___ ______ ___ ___.
______ _________ _____ ______ __________ ________ _____.
________ ___ ______ ________ ______ _____ __________ ___ ______ _____ _________.
______ _________ ______ _______ _____.
___ _________ ___ ___ ________ ______ ___ _________ _______ ________.
____ ________ ___ ______ ________ _________ ______ _____ ________ ______ __________.
________ _________ ______ ________ ________ _____ _____ _____ ___ __________.
______ _________ ________ ________ ___ ____ ________ ________ _________ __________.
__________ _______ _________ _________ ___ ____ _____ ___ ______.
______ _______ __________ ________ _______ ___ _______ ________ _________ ________.
__________ _____ _____ ________ ____ _______ ___ ____ ____ _________.
___ ___ ______ ___ ____ __________ ______ _________ ________.
__________ __________ ________ ______ __________ ____.
_______ __________ _____ ___ _________ ___ __________ _________ _________.
_______ __________ ___ ________ _________ _______ ___ ________.
________ _______ ____ ____ __________ ____ __________ ___ ___ ________ ______ ____.
____ __________ _____ _____ _______ ___ ________ _____ _______ ______ ___ ______.
____ __________ __________ _________ ___ ________ ___ ________ _____ _________ _______ ________.
____ ____ ____ _________ _______ ____ _________ _________.
_____ ___ _________ ______ __________ ________ _____.
_______ _________ _____ _______ _____ ______ ______ _________ ____ ____ _________.
____ ______ ______ _______ ____ ___ ______ ______.
___ __________ _________ ____ _________ _____ ____ _____ ___.
___ ____ _____ ____ __________ _____ _____ ___ _______ _________.
______ __________ _________ _____ ___.
________ _____ _____ __________ _________ _______ ________ ______.
__________ ________ ___ ___ ______ ________ _________ ___ ___ ________.
_____ __________ _____ _____ _______ _______.
_______ __________ _________ _____ ________ ________ __________ ____ __________ ________ __________.
____ ________ _____ ___ ___ _________ __________ _____ ______ _______.
________ ________ _________ _______ ________ _______ _____ _______ ___ ____ ________.
_______ __________ _____ ____ ________ ________ _________ _____ _________ ______ _____.
Get Full Answer on WhatsApp
- Attributes:
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★