/* Caitlin Ross
 * ross0272@algonquinlive.com
 * Student #040750891
 * CST8284 Object Oriented Programming (Java)
 * Section 451
 * Assignment 6
 * Oct 25, 2020
 */
package assignmentSix;

public class Animal {
    private String name;
    private int age;
    private double height; // in m
    private double weight; // in kg
    
    // Constructor
    public Animal(String name, int age, double height, double weight) {
        this.name = name;
        this.age = age;
        this.height = height;
        this.weight = weight;
    }
    
    // Accessors
    public String display() { return name + " is " + age + " years old, " + height + "m tall, and weighs " + weight + "kg."; }
    public String getName() { return name; }
    public int howOld() { return age; }
    public double howTall() { return height; }
    public double howHeavy() { return weight; }
    
    // Modifiers
    public void happyBirthday() { age++; }
    public void measureHeight(double newHeight) { height = newHeight; }
    public void measureWeight(double newWeight) { weight = newWeight; }
}
