0% found this document useful (1 vote)
1K views

CS304 Assignment 1

The document outlines classes and relationships for an online shopping application including classes for users, customers, delivery people, managers, products, carts, payments and categories. The classes define attributes and methods related to user accounts, viewing products, making purchases, payments and order management.

Uploaded by

Usman Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
1K views

CS304 Assignment 1

The document outlines classes and relationships for an online shopping application including classes for users, customers, delivery people, managers, products, carts, payments and categories. The classes define attributes and methods related to user accounts, viewing products, making purchases, payments and order management.

Uploaded by

Usman Ali
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

CS304 Assignment 01

(Solution)

BC210202381
USMAN ALI

User

-ID : int
-Name: string
-password:string

+login ()

Customer / People Delivery man


Manager / Admin
-Address : string -Address : string -Address : string
-contact : string
+ViewCate() +DeliverOrder()
+ViewCate() +ViewProduct()
+SelectProduct() +AddProduct()
+BuyProduct() +DelProduct()
+Makepayment() + EditProduct () Assign Order
+AddToCart() +Manage Customer
+DelFromCart() +ConfirmOrder

Makes View / Buy

Has
1

Payment Manage
1

Cart Product
+PaymentID : int
+Status : String -ProductID : int -ProductID : int
+Amount : int -CustomerInfo : string +ProductName : String
-custID : char +Prices : int
-CardNumber : char +UpdatedProduct() -Quantity : char
+DelProduct()
+SetPaymentID() +TotalProduct() +SetProduct()
+SetAmount() +TotalAmount() +GetProduct ()

Has
Product category

-CatID : int
+CatName : String

+Setcat()
+GetCat ()

You might also like