Define the artist class with a constructor to initialize an artist's information and a print_info() method. the constructor should by default initialize the artist's name to "none" and the years of birth and death to 0. print_info() should display artist name, born if the year of death is -1 or artist name (-) otherwise.

define the artwork class with a constructor to initialize an artwork's information and a print_info() method. the constructor should by default initialize the title to "none", the year created to 0, and the artist to use the artist default constructor parameter values.

Solved
Show answers

Ask an AI advisor a question