作业帮 > 英语 > 作业

英语翻译Define a class whose objects are records on animal speci

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/08/11 20:40:10
英语翻译
Define a class whose objects are records on animal species.The class will have instance
variables for the species name,population,and growth rate.The growth rate is a percentage
which can be positive or negative and can exceed 100 per cent.Include a suitable collection
of constructors,mutator methods,and accessor methods.Also,include a toString method
and an equals method.Also,include a boolean valued method named endangered that
returns true when the growth rate is negative and returns false otherwise.
英语翻译Define a class whose objects are records on animal speci
定义一个类的对象是记录动物物种.类将有实例
变数的种类名称,人口和增长速度.增长率是一个百分比
可积极或消极的,可以超过百分之百.包括一个合适的收集
的建设者,突变的方法,和存取方法.此外,包括一个ToString方法
和平等的方法.此外,包括一个布尔值的方法命名为濒临灭绝的
返回true时,增长率是消极的,否则返回false .