Commit 59016b60 authored by a-j.towse's avatar a-j.towse

deleted dogTest, added fish

parent e2c23cab
No preview for this file type
...@@ -6,8 +6,8 @@ public class App { ...@@ -6,8 +6,8 @@ public class App {
Zoo myZoo = new Zoo(); Zoo myZoo = new Zoo();
DogTest Rex = new DogTest("Rex","red stripes","barn","dog food"); Fish Rex = new Fish("Rex","red stripes","sea","sea-weed",12.5,"freshwater");
DogTest Pix = new DogTest("Pix","Gold","house","human food and dog food"); Fish Pix = new Fish("Pix","gold","river","smaller fish",5.0,"saltwater");
myZoo.addanimal(Rex); myZoo.addanimal(Rex);
myZoo.addanimal(Pix); myZoo.addanimal(Pix);
...@@ -27,7 +27,7 @@ public class App { ...@@ -27,7 +27,7 @@ public class App {
myZoo.displayListDetials(animalList); myZoo.displayListDetials(animalList);
myZoo.displayEnvironmentList("house"); myZoo.displayEnvironmentList("sea");
} }
} }
......
public class DogTest extends Animal {
public DogTest() {
super();
}
public DogTest(String name, String description, String environment, String foodType) {
super(name, description, environment, foodType);
}
}
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