Question: This class will represent a Park object, which we will define as having .A nae, represented as a String (i e Jurassic Park) . Zones,

This class will represent a Park object, which we will define as having .A nae, represented as a String (i e Jurassic Park) . Zones, stored as an array of Zone objects (ie. Zone[]) .A toString method, which calls upon the toStringO method in Zone.jara to return as a String all needed information . An addZone) method, which takes as a parameter a Zone object and returns nothing This class must have a constructor and getters and setters to accommodate its variables. Zone This class will represent a Zone object, which we will define as having: ented as a String (ic.: Raptor Zone) An array of Dinosaur objects .A toString) method which returns a String representation of all dinosaurs in the zone .An addDinosaur(.) method, which takes as a parameter a Dinosaur object and returns nothing This class must have a constructor and getters and setters to accommodate its variables. Dinosaur This class will represent a Dinosaur object, which we wll define as having: . A name, represented as a String ie. Rex) . A type, represented as a String (i.e. Tyrannosaurus) Whether or not the dino is a vegetarian very importan Ts wll be represented as a boolean (ie false, for Rex) .A toString0 method which returns a String representation of the dinosaur This class must have a constructor arnd getters and setters to accommodate its variables As this lab 5 meant to review regular arroys m Java, no other data structure may be used to store the o ects required. (No Army sts are permitted or example). Output Once your code compiles, you will be able to examine the output of your program. The output of your program must match the format of the sample below. This sample is the result of running the Labl.java class with the given main method. Welcome to Turassic Park! Raptor Zone: * VelociraptorBlue (carnivore) velociraptorDelta (carnivore) velociraptorEcho (carnivore) T-Rex Zone Tyrannosaurus Rex (carnivore) Brachiosaurus Zons * Apatosaurus -Littlefoot (not earnivore) Stegosaurus-Spike (not carnivore) SrachiosaurusBob (not carnivore)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
