Commit a803e4f3 authored by LoomyGames's avatar LoomyGames

Final code

parent a852e174
...@@ -6,7 +6,7 @@ import java.util.Scanner; ...@@ -6,7 +6,7 @@ import java.util.Scanner;
public class ZooMain { public class ZooMain {
static Mammal Zebra = new Mammal("Zebra", "Mammal", "Plains", "Herbs");// a declaration of an animal, using the constructor static Mammal Zebra = new Mammal("Zebra", "Mammal", "Plains", "Herbs");// a declaration of an animal, using the constructor
static Mammal Elephant = new Mammal("Elephant", "Mammal", "Savanna", "Herbs"); static Mammal Elephant = new Mammal("Elephant", "Mammal", "Savanna", "Herbs");//only added 8 animals, 2 of each type, more can be added any time
static Reptile Crocodile = new Reptile("Crocodile", "Reptile", "Swamp", "Meat"); static Reptile Crocodile = new Reptile("Crocodile", "Reptile", "Swamp", "Meat");
static Reptile Chameleon = new Reptile("Chameleon", "Reptile", "Forest", "Insects"); static Reptile Chameleon = new Reptile("Chameleon", "Reptile", "Forest", "Insects");
static Bird Hawk = new Bird("Hawk", "Bird", "Desert", "Meat"); static Bird Hawk = new Bird("Hawk", "Bird", "Desert", "Meat");
......
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