Question
create a zoo.java Create an Animal class with the properties name, age, and species. Include a constructor, getters, and setters. Develop four subclasses: Hyena, Lion,
create a zoo.java Create an Animal class with the properties name, age, and species. Include a constructor, getters, and setters. Develop four subclasses: Hyena, Lion, Tiger, and Bear, each with unique features. Data Structures: Use ArrayList for storing animal instances and HashMap for counting species., list each animals by species, their names, ages, and the total count of each species. Control Structures & OOP Design: Apply loops, conditionals, encapsulation, inheritance, and polymorphism as specified. Design and implement the Animal class and its subclasses. Process animal instances from the input file using Java data structures. Output a report with the format specified. PLEASE SHOW EVERYTHING
this is just an example . no classwork as my own its a study for midterm
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