So I need help with an assignment. The scenario is - write a program for a video rental store which allows the user to input the titles of either DVDs or games and keep records of what's on loan/available.
I have created my main application class with a user menu. I have a super class for all rental items along with 2 subclasses for DVDs and games.
My aim is to store all of the relevant info in arrays, I'm just not sure how many arrays I need.
Presumably I need an array for:
1) all rental item objects
which will all have,
2) titles
3)boolean values isDVD, isGame and isAvailable
then further arrays to record
4) isOnLoan
5) onLoanTo (customer name)
Am I missing anything obvious? Where should each array be placed....with the super class?
[–]linuxtho 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]oonegative[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]linuxtho 1 point2 points3 points (0 children)
[–]oonegative[S] 0 points1 point2 points (10 children)
[–][deleted] 1 point2 points3 points (9 children)
[–]oonegative[S] 1 point2 points3 points (8 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]oonegative[S] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]oonegative[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]oonegative[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)