diff --git a/Zoo/src/main/Runner.java b/Zoo/src/main/Runner.java index ed1b309..f4cb06c 100644 --- a/Zoo/src/main/Runner.java +++ b/Zoo/src/main/Runner.java @@ -1,5 +1,8 @@ package main; +import java.io.Console; + +import model.Budgerigar; import model.Example; public class Runner { @@ -11,7 +14,8 @@ public static void main(String[] args) { private void go() { Example example = new Example(); - example.makeNoise(); - + Budgerigar budgie = new Budgerigar(); + System.out.println(example.makeNoise()); + System.out.println(budgie.makeNoise()); } } diff --git a/Zoo/src/model/Budgerigar.java b/Zoo/src/model/Budgerigar.java new file mode 100644 index 0000000..6768fbc --- /dev/null +++ b/Zoo/src/model/Budgerigar.java @@ -0,0 +1,148 @@ +/** + * @author Mandy Wiedmier - mwiedmier2 + * CIS175 - Spring 2024 + * Jan 22, 2024 + */ +package model; + +/** + * Budgerigar class for the Github demo + */ +public class Budgerigar { + private String habitat; + private String name; + private String favoriteTreat; + private int height; + private int feathers; + private double weight; + + public Budgerigar() { + super(); + // TODO Auto-generated constructor stub + // Test Comment for this new class + } + + /** + * @param habitat + * @param name + * @param length + */ + public Budgerigar(String habitat, String name, int height) { + super(); + this.habitat = habitat; + this.name = name; + this.height = height; + } + /** + * @param habitat + * @param name + * @param favoriteTreat + * @param height + * @param feathers + * @param weight + */ + public Budgerigar(String habitat, String name, String favoriteTreat, int height, int feathers, double weight) { + super(); + this.habitat = habitat; + this.name = name; + this.favoriteTreat = favoriteTreat; + this.height = height; + this.feathers = feathers; + this.weight = weight; + } + + /** + * @return the habitat + */ + public String getHabitat() { + return habitat; + } + + /** + * @param habitat the habitat to set + */ + public void setHabitat(String habitat) { + this.habitat = habitat; + } + + /** + * @return the name + */ + public String getName() { + return name; + } + + /** + * @param name the name to set + */ + public void setName(String name) { + this.name = name; + } + + /** + * @return the favoriteTreat + */ + public String getFavoriteTreat() { + return favoriteTreat; + } + + /** + * @param favoriteTreat the favoriteTreat to set + */ + public void setFavoriteTreat(String favoriteTreat) { + this.favoriteTreat = favoriteTreat; + } + + /** + * @return the height + */ + public int getHeight() { + return height; + } + + /** + * @param length the height to set + */ + public void setHeight(int height) { + this.height = height; + } + + /** + * @return the feathers + */ + public int getFeathers() { + return feathers; + } + + /** + * @param feathers the feathers to set + */ + public void setFeathers(int feathers) { + this.feathers = feathers; + } + + + /** + * @return the weight + */ + public double getWeight() { + return weight; + } + + /** + * @param weight the weight to set + */ + public void setWeight(double weight) { + this.weight = weight; + } + + @Override + public String toString() { + return "Budgerigar [habitat=" + habitat + ", name=" + name + ", favoriteTreat=" + favoriteTreat + ", height=" + + height + ", feathers=" + feathers + ", weight=" + weight + "]"; + } + + public String makeNoise() { + return "Tweet tweet chirp!"; + } +}