diff --git a/Zoo/src/main/Runner.java b/Zoo/src/main/Runner.java index ed1b309..5bc6b57 100644 --- a/Zoo/src/main/Runner.java +++ b/Zoo/src/main/Runner.java @@ -1,6 +1,7 @@ package main; import model.Example; +import model.Koala; public class Runner { @@ -13,5 +14,8 @@ private void go() { Example example = new Example(); example.makeNoise(); + Koala koala = new Koala("Forest", "Jim", 73.5); + System.out.println(koala.makeNoise()); + } } diff --git a/Zoo/src/model/Koala.java b/Zoo/src/model/Koala.java new file mode 100644 index 0000000..3007b9f --- /dev/null +++ b/Zoo/src/model/Koala.java @@ -0,0 +1,53 @@ +package model; + +/** + * @author Jeff Johnson - jjohnson190 + * CIS175 - Spring 2024 + * Jan 24, 2024 + */ +public class Koala { + + private String habitat; + private String name; + private double length; + + public Koala() { + super(); + } + + public Koala(String habitat, String name, double length) { + super(); + this.habitat = habitat; + this.name = name; + this.length = length; + } + + public String getHabitat() { + return habitat; + } + + public void setHabitat(String habitat) { + this.habitat = habitat; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public double getLength() { + return length; + } + + public void setLength(double length) { + this.length = length; + } + + public String makeNoise() { + return "*grunt*"; + } + +}