源码简介: |
版本要求:程序体现面向对象的编程思想;要求能够灵活添加新物品,并向用户提供多次购买一次性结帐的功能;提示:可用以下三个类解决该问题:1.货物类(Goods):一个商品,包含了名称,价格信息2.购物篮类(Basket):一个购物篮,包含了已经选择的东西3.Store:小芳便利店 主程序-version requirements : procedures reflect object-oriented programming ideas; Require flexibility to add new items, multiple users to purchase one-time billing functions; Tip : The following three categories can be used to solve the problem : 1. Goods category (Goods) : a commodity, including the name, price information 2. Shopping basket category (Basket) : a shopping cart, already contains a choice of three things. Store : Xiaofang facilitate procedures owner
|