import java.util.Date; /*** * * @author gtowell * File: Cat.java * Desc: holds details about cats */ public class Cat extends Animal { /** * The date that the cat was declawed. null if it is not declawed. */ Date declawedDate; /** * A constructor * @param id the id of the cat */ public Cat(String id) { super(id); // call the constructor of the super class } /** * Call this method on the day that the cat was declawed. */ public void justDeclawed() { declawedDate = new Date(); } /** * does the cat have claws * @return true iff the cat has claws */ public boolean hasClaws() { return declawedDate==null; } }