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 >
Wrap
Text File
|
1995-06-02
|
315b
|
19 lines
%PROLOG%
#include <stdio.h>
#include "cat.hh"
/*
* The Cat class implementation is very simple.
*/
void Cat::reactTo(provocation p)
{
if (p >= vex_mightily)
printf("%s arches its back and hisses!\n", name);
else
Animal::reactTo(p);
}
Cat::Cat(char *n) : Animal(n) {}