Commit 5204d033 authored by jinny.wilkin's avatar jinny.wilkin

Grab species details mk1

parent 72573186
...@@ -31,5 +31,10 @@ abstract public class Animal{ ...@@ -31,5 +31,10 @@ abstract public class Animal{
this.speed = spd; this.speed = spd;
} }
public void getDetailsBase(){
System.out.printf("Name: %s\nHabitat: %s\n Diet: %s\n Age: %d\n Integument: %s\n Gender: %s\n Number of Legs: %d\n Max Speed: %d\n",
this.name, this.habitat, this.food, this.age, this.integument, this.gender, this.numOfLegs, this.speed);
}
} }
\ No newline at end of file
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