Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to unknown
Define the Artist class in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "unknown" and the years of birth and death to
Define the Artwork class in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "unknown", the year created to and the artist to use the Artist default constructor parameter values. Add an import statement to import the Artist class.
Add import statements to main.py to import the Artist and Artwork classes.
Ex: If the input is:
Pablo Picasso
Three Musicians
the output is:
Artist: Pablo Picasso to
Title: Three Musicians,
Ex: If the input is:
Brice Marden
Distant Muses
the output is:
Artist: Brice Marden to present
Title: Distant Muses,
Ex: If the input is:
Banksy
Balloon Girl
the output is:
Artist: Banksy unknown
Title: Balloon Girl,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started