issues
search
AlejandroNeira98
/
Catalog_MyThings_Ruby
3
stars
0
forks
source link
Create MusicAlbum class and override can_be_archived?
#59
Closed
saadat-ali-awan
closed
2 years ago
saadat-ali-awan
commented
2 years ago
Create MusicAlbum class in a separate .rb file.
All MusicAlbum class properties visible in the diagram should be defined and set up in the constructor method.
Implement methods:
can_be_archived?() in the MusicAlbum class
should override the method from the parent class
should return true if the parent's method returns true AND if on_spotify equals true
otherwise, it should return false