Need help making a project, to ink cd to artist to concert
need to add relevant fields to the Concert class.
plus two constructors for each class - one to take arguments for all fields
Add accessor and mutator methods to required to all three classes.
jthen need to make a print method for each class
These methods should print to the terminal window.
For the CD class, add a print method that will print details of the CD, Artist and the artist’s next concert.
Apply the following validation rules to class fields:
CD
private String genre – restricted to ‘Soul’, ‘Jazz’, or ‘Blues’
private int numberOfTracks – must be greater than zero.
private int yearReleased – must be a value greater than 1900 but less than 2004
Concert
Devise and implement validation rules based on your choice of fields for this class
Apply the following validation rules to class fields:
CD
private String genre – restricted to ‘Soul’, ‘Jazz’, or ‘Blues’
private int numberOfTracks – must be greater than zero.
private int yearReleased – must be a value greater than 1900 but less than 2004
Artist
private int age – must be greater than zero and less than 120
Concert
Devise and implement validation rules based on your choice of fields for this class