By: Prof. Dr. Fazal Rehman | Last updated: March 3, 2022
Let us see the Grocery Management System Class Diagram. We will show the attributes and functions of all the classes that are possible in this project.
List of classes
Customer
Outlet
System Order
Payment
Bank
Sodexo System
Cash on Delivery
class (Customer)Attributes/Variables of the class (Customer)Private Attributes/Variables:
There are the following private attributes in the mentioned class diagram.
-password: varchar
Public Attributes/Variables:
There are following public attributes in the mentioned class diagram.
+ID:int
Functions of the class (Customer)
There are following functions in the mentioned class diagram.
+login()
+select-outlet()
+place-order-from-menu-card()
+payment()
class (Outlet)Attributes/Variables of the class (Outlet)Private Attributes/Variables:
We can assign private attributes/ values to this class, but suppose that currently, we are not willing to make the attributes private.
Public Attirbutes/Variables:
There are following public attributes in the mentioned class diagram.
+check_the_order:char
+deliverd_the_order: char
Functions of the class (Outlet)
There are following functions in the mentioned class diagram.
+view_oultet()
+search_outlet()
class (System Order)Attributes/Variables of the class (System Order)Private Attributes/Variables:
There are following private attributes in the mentioned class diagram.
Public Attributes/Variables:There are following public attributes in the mentioned class diagram.
+menu_cards:char
+restaurant_list:char
+customer_id_password:varchar
+payment_option:varchar
Functions of the class (System Order)
There are following functions in the mentioned class diagram.
+order_check()
class (Payment)Attirbutes/Variables of the class (Customer)Private Attirbutes/Variables:
There are following private attributes in the mentioned class diagram.
Public Attirbutes/Variables:There are following public attributes in the mentioned class diagram.
+payment:int
+payment_amount:int
Functions of the class (Payment)There are following functions in the mentioned class diagram.
+withdraw_payment()
class (Bank)Attributes/Variables of the class (Bank)Private Attributes/Variables:
There are following private attributes in the mentioned class diagram.
-account_no:int
-account_type:char
-online_id_pswd:varchar
Public Attributes/Variables:
There are following public attributes in the mentioned class diagram.
Functions of the class (Bank)
There are the following functions in the mentioned class diagram.
+payment()
class (Cash on Delivery)Attributes/Variables of the class (Cash on Delivery)Private Attributes/Variables:
There are the following private attributes in the mentioned class diagram.
-customer_name:varchar
-customer_adress:varchar
-amount:int
Public Attributes/Variables:
There are following public attributes in the mentioned class diagram.
Functions of the class (Cash on delivery)
There are following functions in the mentioned class diagram.
+update_cash_delivery()
+delete_cash()