This class have functions like animals do.
More...
#include <animal.h>
This class have functions like animals do.
Test class. inherited by 人間 class.
動物::動物 |
( |
unsigned int |
i年齢 | ) |
|
|
inline |
destructor
Only to make this class inheritable. Do nothing.
sleeping function
Simulate sleeping
- Returns
- true unless not want to sleep.
bool 動物::食べる |
( |
wchar_t * |
食べ物 | ) |
|
|
inline |
eating function
Simulate eating something
- Parameters
-
- Returns
- true if
食べ物
is eatable
bool 動物::飲む |
( |
wchar_t * |
飲み物 | ) |
|
|
inline |
drinking function
Simulate drinking something
- Parameters
-
- Returns
- true if
飲み物
is drinkable
The documentation for this class was generated from the following file: