Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Album Class Java 2. Album Class Name: Album.java Create an Album class with the following items: Attributes (private) Title Artist . Year Tracks (an array
Album Class Java
2. Album Class Name: Album.java Create an Album class with the following items: Attributes (private) Title Artist . Year Tracks (an array of Song objects) Constructors . No argument constructor (set the attributes to default values) . Constructor that allows the attributes to be set Operations (public) toString0 to return a string representation of the Album in the format: Album Title Artist Year 1. First Track Title (duration) 2. Second Track Title (duration) 3. Third TrackTitle (duration) . Getters for each attribute . Setters for each attribute Add a main method to the Album class that creates an Album object. Display the result of the Album object's toString0 method Example Output (Abbreviated) albuml: Discovery Daft Punk 2001 1. One More Time (5:20) 2. Aerodynamic (3:32)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started