0% found this document useful (0 votes)
35 views1 page

UML B.drawio

This document defines classes for modeling an online grocery delivery system including: - Member, Payment, Date, Product, Order, Consumer, Driver, Place, Vegetable, Canned, Dairy, and Sweet classes - The classes have attributes like name, phone number, amount, pay method, date, ID, status, etc. and methods like getters, setters, constructors - The classes are related where Order has a Consumer, Driver, Payment and Products and the Product classes extend an abstract Product class

Uploaded by

Leena Bander
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)
35 views1 page

UML B.drawio

This document defines classes for modeling an online grocery delivery system including: - Member, Payment, Date, Product, Order, Consumer, Driver, Place, Vegetable, Canned, Dairy, and Sweet classes - The classes have attributes like name, phone number, amount, pay method, date, ID, status, etc. and methods like getters, setters, constructors - The classes are related where Order has a Consumer, Driver, Payment and Products and the Product classes extend an abstract Product class

Uploaded by

Leena Bander
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/ 1

Payment

Member
 - amount : double
 - name : String - payMethod :String Date
- phoneNo :String
 - DAY: int
 - MONTH: int
 - YEAR: int

+<<Constructor>>payment()
+<<Full Constructor>>payment(double amount , String payMethod  ) +<<Constructor>>Date()
+<<Constructor>>Member()
+<<Full Constructor>>Date(int DAY , int MONTH , int YEAR] )
+<<Full Constructor>>Member(String name, String phoneNo ) +<<all setters>>
+<<all getters>>
+<<all setters>> +<<all getters>>
+toString():String
+<<all getters>> +toString():String
+toString():String +checkDiscount() : double

Extends
Order

 - ID: int
 - ststus: String
Consumer Driver  - consumer: Consumer
- driver : Driver
 - name: String  - name: String - payment :Payment
- phoneNo: String  - number: int  - products: Product[]
- place: Place  - distance: int - date: Date
- email :String  - count: int
+<<Constructor>>driver()
+<<Full Constructor>>driver(String name , int +<<Constructor>>Order()
number , int distance ) +<<Full Constructor>>Order(String status ,Consumer consumer ,Driver  driver ,Payment payment ,
+<<Constructor>>consumer()
+<<all setters>> Products product[] ,Date date)
+<<Full Constructor>>consumer(String
+<<all getters>> +<<all setters>>
name,String phoneNo  , Place place ,
+toString():String +<<all getters>>
String email )
+PriceOfDelivery() : int +toString():String
+<<all setters>> +displayInfo():void
+<<all getters>>
<<interface>>InterPrice
+toString():String
VAT : double

Place
TotalPrice() : double
- city :String
- neighbourhood: String
- road: String Product
- houseNumber: int
 - ID: int
 - name: String
+<<Constructor>>Place()  - description: String
+<<Full Constructor>>Place( String city ,String neighbourhood ,String road, - count: int
int houseNumber )   
+<<all setters>>  
+<<all getters>>
+toString():String

+<<Constructor>>product()
product+<<Full Constructor>>product(int ID , String name , Sring description )
+<<all setters>>
+<<all getters>>
+toString():String
+TotalPrice() : double

Extends

Vegetable Canned Dairy Sweet

 - pricePerKg: double  - canPrice: double  - unitPrice: double  - swPrice: double


 - vegCount: int       
   

+<<Constructor>>Vegetable() +<<Constructor>>canned() +<<Constructor>>dairy() +<<Constructor>>sweet()


+<<Full Constructor>>Vegetable(int ID ,String name , String +<<Full Constructor>>canned(int ID ,String name , String +<<Full Constructor>>dairy(int ID ,String name , String +<<Full Constructor>>sweet(int ID ,String name , String
description , double pricePerKg ) description , double canPrice ) description , double unitPrice ) description , double swPrice )
+<<all setters>> +<<all setters>> +<<all setters>> +<<all setters>>
+<<all getters>> +<<all getters>> +<<all getters>> +<<all getters>>
+toString():String +toString():String +toString():String +toString():String
+TotalPrice() : final double +TotalPrice() : final double +TotalPrice() : final double +TotalPrice() : final double

Extends

Chocolate

 - chocoSize: String
 

+<<Constructor>>chocolate()
+<<Full Constructor>>chocolate(int ID ,String name , String
description , double swPrice , String chocoSize )
+<<all setters>>
+<<all getters>>
+TotalPrice() : final double

You might also like