Answered step by step
Verified Expert Solution
Link Copied!

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 # 3
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 >=1
Here are examples of first lines of animal data records:
Bob Mammal Bear 300
Lucy Reptile Lizard 2
The additional data depends on the AnimalType:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions