Java实例简单的超市管理系统小a玖拾柒

1packagetest;23publicclassCustomer{45privateStringname;6privateintcustomerType;78@Override9publicStringtoString(){10return"顾客姓名:"+name+"\n会员级别="+customerType11+"\n";12}1314publicCustomer(Stringname,intcustomerType){15super();16this.name=name;17this.customerType=customerType;18}19publicStringgetName(){20returnname;21}22publicvoidsetName(Stringname){23this.name=name;24}25publicintgetCustomerType(){26returncustomerType;27}28publicvoidsetCustomerType(intcustomerType){29this.customerType=customerType;30}31323334}ViewCodeOrder.java

1packagetest;23publicclassProduct{45privateStringname;6privatedoubleprice;7privateintnum;8privatebooleanonSale;910publicProduct(Stringname,doubleprice,intnum,booleanonSale){11super();12this.name=name;13this.price=price;14this.num=num;15this.onSale=onSale;16}1718publicdoublegetSumMoney()19{20returnthis.price*this.num;21}2223@Override24publicStringtoString(){25return"商品名称:"+name+"\n商品价格:"+price+"\n商品数量:"+num26+"\n是否促销:"+onSale+"\n";27}282930publicStringgetName(){31returnname;32}33publicvoidsetName(Stringname){34this.name=name;35}36publicdoublegetPrice(){37returnprice;38}39publicvoidsetPrice(doubleprice){40this.price=price;41}42publicintgetNum(){43returnnum;44}45publicvoidsetNum(intnum){46this.num=num;47}48publicbooleanisOnSale(){49returnonSale;50}51publicvoidsetOnSale(booleanonSale){52this.onSale=onSale;53}5455}ViewCodeType.java

1packagetest;23publicclassType{45publicstaticintCustomer_Common=1;6publicstaticintCustomer_PRIVARY=2;7publicstaticintCustomer_ADVANCE=3;8publicstaticintCustomer_GOLEAN=4;910publicstaticintPRODUCT_ON_SALE=5;11publicstaticintPRODUCT_NOT_SALE=6;12}ViewCodeTest.java

1packagetest;23publicclassTest{45publicstaticvoidmain(String[]args){6//TODO自动生成的方法存根7Productpro=newProduct("小米",12.2,4,false);8Productpro1=newProduct("黄瓜",1.2,6,false);9Productpro2=newProduct("香蕉",2.2,14,true);10Productpro3=newProduct("果汁",7.8,7,false);11Productpro4=newProduct("面包",22.4,5,true);1213Customercus=newCustomer("小明",1);14Customercus1=newCustomer("小白",2);15Customercus2=newCustomer("小王",3);1617Customercus3=newCustomer("小贵",4);1819Orderoder=newOrder(cus,newProduct[]{pro,pro4});20Orderoder1=newOrder(cus1,newProduct[]{pro2,pro3});21Orderoder2=newOrder(cus2,newProduct[]{pro1,pro3});22Orderoder3=newOrder(cus3,newProduct[]{pro,pro4,pro2});2324System.out.println(oder.toString());25System.out.println(oder1.toString());26System.out.println(oder2.toString());27System.out.println(oder3.toString());28}2930}ViewCode程序截图

-------------------------------------------

个性签名:所有的事情到最後都是好的,如果不好,那說明事情還沒有到最後~

THE END
1.超市管理系统(JAVA+sqlserver)基于java swing的超市( 仓库)管理系统(源码+sql server数据库).zip 系统介绍 三只松鼠超市管理系统是一款辅助超市管理员管理超市的实用性项目,根据超市的日常管理需要,超市管理系统应包括基本档案管理、采购订货管理、仓库入库管理、仓库出库管理、人员管理、部门管理6大功能。其中基本档案管理又分为供货商管理、销售商管...https://www.iteye.com/resource/qiange520-5710073
2.JAVAGUI超市管理系统import java.awt.EventQueue; import javax.swing.JFrame; import javax.swing.JTextField; import java.awt.BorderLayout; import javax.swing.JScrollBar; import javax.swing.JLabel; import java.awt.ScrollPane; import java.awt.Scrollbar; import java.awt.Color; ...https://www.jianshu.com/p/958a426a914f
3.毕业设计(论文)毕业设计(论文)-基于JAVA的超市管理系统的设计与实现.doc,PAGE PAGE II 全套设计加扣 3012250582 廊坊师范学院 本科毕业论文 学号: 姓名: 年级: 2009级 专业: 计算机科学与技术 论文题目: 超市管理系统的设计与实现 指导老师: 全套设计加扣 3012250582 PAGE PAGhttps://max.book118.com/html/2019/0307/5101100303002014.shtm
4.利用java怎么编写一个超市管理系统创新互联本篇文章给大家分享的是有关利用java怎么编写一个超市管理系统,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。 创新互联专注为客户提供全方位的互联网综合服务,包含不限于网站建设、网站制作、象山网络推广、微信小程序定制开发、象山网络营销、象山企业策...http://shouzuofang.com/article/deggdj.html
5....+Shiro+Redis+Bootstrap的超市管理系统(电商网站)基于SSM(Spring+SpringMVC+Mybatis)+Shiro+Redis+Bootstrap的超市管理系统(可以说是电商网站)下面我就开始介绍这个基于JAVAEE的超https://www.imooc.com/article/35525
1.java超市管理系统购物管理系统java代码java超市管理系统 说明:此篇知识面向对象思想的demo,并不涉及到数据库操作,如需数据库操作前往博客 java项目超市购物管理系统_程序三两行的博客-CSDN博客_java超市购物系统 一:开发目标 通过简单的控制台版本的超市管理系统对javase基础知识回顾,熟悉面向对象(java)的开发思想...https://blog.csdn.net/qq_34491508/article/details/80020625
2.java实现简单超市管理系统java这篇文章主要为大家详细介绍了java实现简单超市管理系统,文中示例代码介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们可以参考一下本文实例为大家分享了java实现超市管理系统的具体代码,供大家参考,具体内容如下 一、使用技术 javaSE 二、实现功能 超市管理系统 具体要求如下: 使用选择结构,循环结构,数组...https://www.jb51.net/article/204408.htm
3.java超市收银系统代码java做收银系统gjnet的技术博客基于javaweb的超市收银管理系统(java+SSM+HTML+maven+mysql) 一、项目简述 本系统主要实现的功能有:收银、报表、用户管理、商品管理、销售管理、进货退货管理、仓库管 理等等功能。 二、项目运行 环境配置: Jdk1.8 + Tomcat8.5 + mysql + Eclispe (IntelliJ IDEA,Eclispe,MyEclispe,Sts 都支持) ...https://blog.51cto.com/u_12891/6943730
4.基于JAVA的超市管理系统的设计与实现进销存管理 信息化管理 B/S模式 MY SQLhttps://cdmd.cnki.com.cn/article/cdmd-10614-1015716305.htm
5.计算机毕业设计基于SSM的水果超市管理系统基于java+jsp+mysql+springmvc+mybatis实现一个SSM框架的水果超市管理系统, 可用于计算机专业毕业设计, 该水果超市管理系统分为前后台两部分, 最终实现在线上进行水果超市管理系统各项功能, 提升管理运营效率。 该水果超市管理系统为一个采用mvc设计模式进行开发B/S架构项目, 对水果超市管理系统进行详细的需求分析后, ...https://cs-work.com/article/3496.html
6.基于Java+Mysql的超市管理系统(附源码)基于Java swing+超市管理和购物系统由Mysql实现,使用beautyeye_inf.jar美化界面,用idea编写逻辑代码 1.开发环境 jdk8+mysql8+idea 2.功能 1.注册和登录功能。2.管理员具有商品类别管理、商品管理、用户管理、销售记录查询等功能。3.普通用户具有查看购物车、充值购物卡、修改密码、购买商品等功能。 https://www.tulingxueyuan.cn/tlzx/jsp/1861.html
7.库存管理系统uml题目:小型超市管理系统 1、项目计划 1.1系统开发目的 (1)大大提高超市的运作效率; (2)通过全面的信息采集和处理,辅助提高超市的决策水平; (3)使用本系统,可以迅速提升超市的管理水平,为降低经营成本, 提高效益,增强超市扩张力, 提供有效的技术保障。 https://www.zboao.com/cgal/9126.html
8.Java毕业设计——超市积分管理系统项目设计超市积分管理系统是典型的数据库信息管理系统,整个项目的设计、部署、实施具有信息管理系统的典型代表性,所以,作为毕业设计项目容易演示,并且便于将大学中所学到的知识融合进去,在模块设计、业务流程上都比较容易拓展和优化,是较好的毕业论文设计素材。在设计超市积分管理系统时,建议多参考几个已经实施的项目,重点关注模块...https://cloud.tencent.com/developer/news/376330