Question: IN JAVA PLEASE! 7.5 LAB: Artwork label (classes/constructors) Given main0. define the Artist class (in file Artist.java) with constructors to initialize an artist's information, get
IN JAVA PLEASE!


7.5 LAB: Artwork label (classes/constructors) Given main0. define the Artist class (in file Artist.java) with constructors to initialize an artist's information, get methods, and a printinfo0 method. The default constructor should initialize the artist's name to "unknown" and the years of birth and death to - 1 . printinfo0 displays "Artist:", then a space, then the artist's name, then another space, then the birth and death dates in one of three formats: - (XXXX to YYYY) if both the birth and death years are nonnegative - ( XXXX to present) if the birth year is nonnegative and the death year is negative - (unknown) otherwise Define the Artwork class (in file Artwork.java) with constructors to initialize an artwork's information, get methods, and a printinfo0 method. The default constructor should initialize the title to "unknown", the year created to -1. printinfo 0 displays an artist's information by calling the printinfo0 method in Artist.java, followed by the artwork's title and the year created. Declare a private field of type Art ist in the Artwork class. Ex: If the input is: the output is: Artist:PabloPicasso(1881to1973)Title:ThreeMusicians,1921 Ex If the input is: the output is: Ex: If the input is: the output is: Current file: Artist.java - Load default template
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
