diff --git a/Zoo/bin/.gitignore b/Zoo/bin/.gitignore new file mode 100644 index 0000000..ae8c84e --- /dev/null +++ b/Zoo/bin/.gitignore @@ -0,0 +1 @@ +/model/ diff --git a/Zoo/bin/AnimalNoise.class b/Zoo/bin/AnimalNoise.class index 66c693a..3e8117d 100644 Binary files a/Zoo/bin/AnimalNoise.class and b/Zoo/bin/AnimalNoise.class differ diff --git a/Zoo/bin/model/Example.class b/Zoo/bin/model/Example.class index 736a16e..0cf0c9f 100644 Binary files a/Zoo/bin/model/Example.class and b/Zoo/bin/model/Example.class differ diff --git a/Zoo/src/model/Wolf.java b/Zoo/src/model/Wolf.java new file mode 100644 index 0000000..ec4742d --- /dev/null +++ b/Zoo/src/model/Wolf.java @@ -0,0 +1,58 @@ +/** + * @author Harry McVey + * CIS175 - Fall 2023 + * Aug 29, 2023 + */ + + +package model; + +public class Wolf { + + private String furColor; + private int age; + private boolean isAlpha; + + public Wolf() { + // Default constructor + } + + public Wolf(String furColor, int age, boolean isAlpha) { + this.furColor = furColor; + this.age = age; + this.isAlpha = isAlpha; + } + + public String getFurColor() { + return furColor; + } + + public void setFurColor(String furColor) { + this.furColor = furColor; + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public boolean isAlpha() { + return isAlpha; + } + + public void setAlpha(boolean alpha) { + isAlpha = alpha; + } + + public String makeNoise() { + return "HOWL!"; + } + + @Override + public String toString() { + return "Wolf [furColor=" + furColor + ", age=" + age + ", isAlpha=" + isAlpha + "]"; + } +}