How to implement a "Rent" or "Record" method in a library system using Java?

Status
Not open for further replies.

qatar.engineer

Junior Member level 1
Joined
Nov 9, 2006
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,452
How to implement a "Rent" or "Record" method in a library system using Java?

Hi,

could you tell me please how can i implement a "Rent" or "Record" method in a library system class

using JAVA


thanks any way,
 

Re: A Java method

Well...you could create a book class for a book object with a boolean attribule for whether it is currently being rented or not. Then you could create a library class with an ArrayList of books and then you could implement a "rent" method which would just change the rented objects attribute. And in the rent method you could call a private record method to keep track of all library objects rented, overdue, in stock, etc.

Good Luck
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…