diff --git a/Zoo/bin/.gitignore b/Zoo/bin/.gitignore new file mode 100644 index 0000000..a8efae8 --- /dev/null +++ b/Zoo/bin/.gitignore @@ -0,0 +1,2 @@ +/model/ +/main/ diff --git a/Zoo/bin/main/Runner.class b/Zoo/bin/main/Runner.class index 87c83e6..03dc1ca 100644 Binary files a/Zoo/bin/main/Runner.class and b/Zoo/bin/main/Runner.class differ diff --git a/Zoo/bin/model/Example.class b/Zoo/bin/model/Example.class index 3375ca8..bc3d481 100644 Binary files a/Zoo/bin/model/Example.class and b/Zoo/bin/model/Example.class differ diff --git a/Zoo/src/main/Runner.java b/Zoo/src/main/Runner.java index ed1b309..19bec61 100644 --- a/Zoo/src/main/Runner.java +++ b/Zoo/src/main/Runner.java @@ -1,6 +1,5 @@ package main; - -import model.Example; +import model.Tiger; public class Runner { @@ -10,8 +9,8 @@ public static void main(String[] args) { } private void go() { - Example example = new Example(); - example.makeNoise(); + Tiger tiger = new Tiger("Jungle"); + System.out.println(tiger.MakeNoise()); } } diff --git a/Zoo/src/model/Tiger.java b/Zoo/src/model/Tiger.java new file mode 100644 index 0000000..5739a61 --- /dev/null +++ b/Zoo/src/model/Tiger.java @@ -0,0 +1,40 @@ +/** + * @author deondaigh - dmdaigh + * CIS175 - Spring 2024 + * Jan 26, 2024 + */ +package model; + +/** + * @author deondaigh + * + */ +public class Tiger { + private String habitat; + + /** + * @param habitat + */ + public Tiger(String habitat) { + super(); + this.habitat = habitat; + } + + /** + * @return the habitat + */ + public String getHabitat() { + return habitat; + } + + /** + * @param habitat the habitat to set + */ + public void setHabitat(String habitat) { + this.habitat = habitat; + } + + public String MakeNoise() { + return "Roar"; + } +}