Solved

A New Class Is Proposed to Collect Information About a Group

Question 67

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents