文件名称:Book
介绍说明--下载内容来自于网络,使用问题请自行百度
定义一个Book类,该类定义中包括:
数据成员:bookname, price, number(存书数量)
成员函数:
display() //显示图书的情况‘
borrow() //将存书量减1,并显示当前存书数量
restore() //将存书量加1,并显示当前存书数量
在main()函数中,要求创建多种图书数量,并且对该图书进行简单的显示、借阅和归还管理。(Define a Book class that includes:
Data members: bookname, price, number (the number of books)
Member functions:
(display) / / display the situation of books "
(borrow) / / storage minus 1, and displays the current number of books
(restore) / / add storage 1, and displays the current number of books
In the main () function, a number of books are required to be created and a simple display, loan, and return management of the book is made.)
数据成员:bookname, price, number(存书数量)
成员函数:
display() //显示图书的情况‘
borrow() //将存书量减1,并显示当前存书数量
restore() //将存书量加1,并显示当前存书数量
在main()函数中,要求创建多种图书数量,并且对该图书进行简单的显示、借阅和归还管理。(Define a Book class that includes:
Data members: bookname, price, number (the number of books)
Member functions:
(display) / / display the situation of books "
(borrow) / / storage minus 1, and displays the current number of books
(restore) / / add storage 1, and displays the current number of books
In the main () function, a number of books are required to be created and a simple display, loan, and return management of the book is made.)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
| 文件名 | 大小 | 更新时间 |
|---|---|---|
| Book.java | 1450 | 2017-11-26 |
| Book.class | 2124 | 2017-12-02 |
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
