Question: JAVA 7.12 LAB: Album information (inheritance with overriding) When artists have a successful career, there is sometimes the need to collect all their works in
7.12 LAB: Album information (inheritance with overriding) When artists have a successful career, there is sometimes the need to collect all their works in an anthology album. Given main() and a base Album class, define a derived class called Boxset. Within the derived Album class, define a printinfo) method that overrides the Album class printinfo() method by printing not only the title, author, publisher, and publication date, but also whether it is the complete works, and number of discs. Ex. If the input is: Master of Puppets Metallica Elektra 1986 The Complete Studio Albums Creedence Clearwater Revival Fantasy 27 Oct 2014 true 7 the output is: Album Information: Album Title: Master of Puppets Author: Metallica Publisher: Elektra Publication Date: 1986 Album Information: Album Title: The Complete Studio Albums Author: Creedence Clearwater Revival Publisher: Fantasy Publication Date: 27 Oct 2014 Is Complete Works? true Number of Discs: 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
