In JAVA please!!
Question 20 (8 points) (8 pts) Assume CD is a class whose objects represent music CDs. Assume a constructor of the CD class accepts two parameters – the name of the CD and the duration in minutes. A. (3 pts) Write a declaration for and instantiate a variable named music that is an ArrayList of CDs. B. (3pts) Instantiate (construct) a CD object that holds the information of your favorite CD (guess the duration if you don’t know for sure how long it is). C. (2pts) Add the favorite CD you constructed in part B to the ArrayList music. Show transcribed image text Question 20 (8 points) (8 pts) Assume CD is a class whose objects represent music CDs. Assume a constructor of the CD class accepts two parameters – the name of the CD and the duration in minutes. A. (3 pts) Write a declaration for and instantiate a variable named music that is an ArrayList of CDs. B. (3pts) Instantiate (construct) a CD object that holds the information of your favorite CD (guess the duration if you don’t know for sure how long it is). C. (2pts) Add the favorite CD you constructed in part B to the ArrayList music.
Expert Answer
Answer to Question 20 (8 points) (8 pts) Assume CD is a class whose objects represent music CDs. Assume a constructor of the CD cl…