Hi, guys,
i program in java
I actually wanted a program for a library system where you can borrow media and so on. 3 types of people can borrow media: students, staff and externals, who can borrow media for 90 days, unlimited and 30 days
I did not get along with the operation getRemainigLoanPeriod(). I did not know how to implement it. I made it abstract first, because it depends on the type of people.
I did not know exactly how to calculate the time. I mean, for example, if I ask for the remaining loan period tomorrow, it had to be less by 1 than today.
do either of you have a solution or something?
Thanks in advance
i program in java
I actually wanted a program for a library system where you can borrow media and so on. 3 types of people can borrow media: students, staff and externals, who can borrow media for 90 days, unlimited and 30 days
I did not get along with the operation getRemainigLoanPeriod(). I did not know how to implement it. I made it abstract first, because it depends on the type of people.
I did not know exactly how to calculate the time. I mean, for example, if I ask for the remaining loan period tomorrow, it had to be less by 1 than today.
do either of you have a solution or something?
Thanks in advance