购物管理系统UML图
2021-05-02 10:36:29 157 举报
就是玩
作者其他创作
大纲/内容
Main_Manage
static void main(String[] args){};
Meau
int goodsInventory;//库存
int getGoodsInventory();void setGoodsInventory();
Shopping_Cart
double totalPrices;
double getTotalPrices();
Person
String nameString telephone
String getName()String getTelephone()void setName()void setTelephone()
Manage//主管理
Client client=new Client();static ManOfTakeaway man=new ManOfTakeaway();static Menu menu=new Menu();Shopping-Cart cart=new ShoppingCart();
void chooseShopping();void show();boolean register();//登录void dilivery();//配送void comManey();//记价
trade_main//main方法类
manage manutil menuU
public static void main(String[] args)
tradeDetail//商品信息
private String name;private double price;private int number;//库存量
public String getName()public void setName(String name)public double getPrice()public void setPrice(double price)public int getNumber()public void setNumber(int number)public String toString()
memberLogin//会员信息类
private static String[] nameprivate static String[] passwordprivate static int[] integral//积分
public static int[] getIntegral()public static void setIntegral(int[] integral)public static String[] getName()public static void setName(String[] name)public static String[] getPassword()public static void setPassword(String[] password)
manage//功能实现类
tradeDetail[] tradetradeDetail[] clientutil uprivate int index//记录登录id下标private double all_maney//累计总金额
public void shopping()//购物界面public void show()//展示商品public void showCart()//展示购物车public void shoppingMenu()//菜单界面public void luckyGuy()//抽奖public int login()//登陆界面
ManOfTakeaway//外卖员
boolean leisure//是否空闲
boolean isLeisure();void setIsleisure();
Meau_Father
String goodsName;double goodsPrice;
String getGoodsName();double getGoodsPrice();void setGoodsName();void setGoodsPrice();
Client
String addrdouble balance
String getAddr()double getBalance()void setAddr()void setBalance()
util//工具类
public String getString()public double getDouble()public int getInt()
收藏
0 条评论
下一页