Commit 7b920bff authored by charlotte.kerr's avatar charlotte.kerr

Upload New File

parent a113cb01
public class Octopus extends Fish {
public void Camouflage() {
System.out.println("The octopus changes colour to match its surroundings.");
}
public Octopus(String name) {
this.name = name;
this.diet = "fish";
this.habitat = "ocean";
this.description = "This animal is an octopus; an intelligent creature with eight limbs";
this.classification = "Fish";
}
}
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