Question: Problem 4 : Zoo Management Points Possible: 4 0 This problem will allow you to demonstrate your understanding of Python classes and objects, inheritance, and
Problem : Zoo Management
Points Possible:
This problem will allow you to demonstrate your understanding of Python classes and objects, inheritance, and polymorphism by creating a simple Zoo Management System. You will add the functionality of a menu and the ability to accept user input when adding, creating, and listing animals in the Zoo.
Instructions:
The zoo will have several animals, and each animal will have a name, age, and species. Moreover, each animal will have a method makesound which should return a string representing the sound it makes. Perform the following steps:
Create a Zoo class. This class should be able to store multiple animals. It should have methods to addanimal and removeanimal. Also, add a method getanimals that prints a list of all animals currently in the zoo, including their name, age, and species.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
