/**** * * @author gtowell * File: Dog.java * Desc: * class to hold dogs */ public class Dog extends Animal { /** * True iff the dog has fleas */ private boolean hasFleas; /** * Dog constructor. Dogs are assumed to have fleas on intake * @param id the id of the dog */ public Dog(String id) { super(id); hasFleas=true; } /** * Change the flea state of the dog. */ public void toggeHasFleas() { this.hasFleas = !hasFleas; } /** * Does the dog have fleas * @return true iff yes */ public boolean getHasFleas() { return hasFleas; } }