Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HA # 3 Topics: class, object, instantiation, methods, inheritance Problem Statement: Zoo In this assignment, you are going to model and implement a Zoo class.
HA #
Topics: class, object, instantiation, methods, inheritance
Problem Statement: Zoo
In this assignment, you are going to model and implement a Zoo class. This will be an objectoriented program that processes few zoo animal data and displays information about the zoo
animals. This assignment exercises the concept of container class, object, inheritance and code
reusability using super
Each animal in the zoo has the following information
Name AnimalType Species Mass
Explanation:
o Name: The animals individual name. Contains no white space.
o AnimalType: The type of animal. One of: Mammal or Reptile
o Species: The animals species. Contains no white spaces
o Mass: The animals mass weight in pounds. A whole number
Here are examples of first lines of animal data records:
Bob Mammal Bear
Lucy Reptile Lizard
The additional data depends on the AnimalType:
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