Commit f6c3b5c9 authored by a-j.towse's avatar a-j.towse

added mammal class

parent 58aedbe6
public class Mammal extends Animal{
public Mammal() {
super();
}
public Mammal(String name, String description, String environment, String foodType, Double weight, Double height){
super(name,description,environment,foodType);
addDetail("Weight: "+weight.toString());
addDetail("Height: "+height.toString());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment