home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VSCPPv7.zip / VACPP / IBMCPP / smarts / DTS / CAT / CAT.CPP < prev    next >
Text File  |  1995-06-02  |  315b  |  19 lines

  1. %PROLOG%
  2.  
  3. #include <stdio.h>
  4. #include "cat.hh"
  5.  
  6. /*
  7.  * The Cat class implementation is very simple.
  8.  */
  9.  
  10. void Cat::reactTo(provocation p)
  11. {
  12.     if (p  >= vex_mightily)
  13.        printf("%s arches its back and hisses!\n", name);
  14.     else
  15.        Animal::reactTo(p);
  16. }
  17.  
  18. Cat::Cat(char *n) : Animal(n) {}
  19.