- Category:
- Java Develop
- Tags:
-
- File Size:
- 1kb
- Update:
- 2017-12-02
- Downloads:
- 0 Times
- Uploaded by:
- 王延泽
Description: 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.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
Book.java | 1450 | 2017-11-26
|
Book.class | 2124 | 2017-12-02 |