/** * This class keeps track of the color and age of different dogs. * * @Anne DeFrance * @version September 16, 2002 */ public class Dog { // instance variables private int age; // the age of the dog private String color; // the color of the dog // mutators change the value of the instance variable public void setColor(String col) { color = col; } public void setAge(int dogAge) { age = dogAge; } //accessors return the value of an instance variable public String getColor() { return color; } public int getAge() { return age; } }