Question: Question in Java Define a class whose objects are records on animal species. The class should have instance variables for the species name, population and

Question in Java

Define a class whose objects are records on animal species. The class should have instance variables for the species name, population and growth rate. The growth rate is a percentage that can be positive or negative. Include at least two (2) suitable constructors, get methods and set methods. Include a boolean value returning method named endangered that returns true when the growth rate is negative and returns false otherwise.

Write an application that creates 2 animal species objects with appropriate values. Display the status for each of the species (endangered or not)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!