Commit 77eeb3d7 authored by charlotte.kerr's avatar charlotte.kerr

Upload New File

parent bfe3e0f3
public class Roadrunner extends Bird {
public void sprint() {
System.out.println("The roadrunner runs at incredibly high speed.");
}
public Roadrunner (String name) {
this.name = name;
this.diet = "insects, reptiles, small mammals and rodents";
this.habitat = "desert";
this.description = "This animal is a roadrunner; a small bird";
this.classification = "Bird";
}
}
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