A new class is proposed to collect information about a group of DVDs.A separate class containing information about a single DVD, named DVD, has already been created.Which of the following is the best design to store the data and size of this collection?
A) Have an ArrayList of DVD and use its size as the size of the collection.
B) Have an ArrayList of DVD and an integer representing the number of DVD objects in the collection.
C) Have an array of DVD and use its size as the size of the collection.
D) Have a single DVD variable representing the last DVD added and an integer representing the number of DVDs in the collection.
Correct Answer:
Verified
Q62: Can the method lastDayOfMonth be changed to
Q63: A theater needs a TicketCounter to keep
Q64: Consider the Checker class below.
Q65: A new method, getMonthName, to get the
Q66: Which of the following is not a
Q68: A new method, getMonthName, to get the
Q69: What will have to change if the
Q70: Consider the following code snippet:
Q71: The best way to learn the strategy
Q72: A new class is proposed to collect
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents