// File: CuckooClock.java from the package edu.colorado.simulations // Complete documentation is available from the CuckooClock link in // http://www.cs.colorado.edu/~main/docs/ package edu.colorado.simulations; /****************************************************************************** * A CuckooClock is a Clock that cuckoos when the * minute is zero. The primary purpose of this class is to demonstrate how an * extended class is implemented. * * Java Source Code for this class: * * http://www.cs.colorado.edu/~main/edu/colorado/simulations/CuckooClock.java * * * @author Michael Main * (main@colorado.edu) * * @version Feb 10, 2016 * * @see Clock ******************************************************************************/ public class CuckooClock extends Clock { /** * Check whether this CuckooClock is currently cuckooing. * @return * If this CuckooClock's current minute is zero, then the * return value is true; otherwise the return value is * false. **/ public boolean isCuckooing( ) { return (getMinute( ) == 0); } }