Bug 705910  2013-10-27
Check the indices goes correctly
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
Public Member Functions | Protected Attributes | List of all members
動物 Class Reference

This class have functions like animals do. More...

#include <animal.h>

Inheritance diagram for 動物:
人間

Public Member Functions

 動物 (unsigned int i年齢)
 constructor More...
 
virtual ~動物 ()
 destructor More...
 
bool 食べる (wchar_t *食べ物)
 eating function More...
 
bool 飲む (wchar_t *飲み物)
 drinking function More...
 
bool 寝る ()
 sleeping function More...
 

Protected Attributes

unsigned int 年齢
 ! More...
 

Detailed Description

This class have functions like animals do.

Test class. inherited by 人間 class.

Constructor & Destructor Documentation

動物::動物 ( unsigned int  i年齢)
inline

constructor

Parameters
i年齢the age
virtual 動物::~動物 ( )
inlinevirtual

destructor

Only to make this class inheritable. Do nothing.

Member Function Documentation

bool 動物::寝る ( )
inline

sleeping function

Simulate sleeping

Returns
true unless not want to sleep.
bool 動物::食べる ( wchar_t *  食べ物)
inline

eating function

Simulate eating something

Parameters
食べ物the meal to eat
Returns
true if 食べ物 is eatable
bool 動物::飲む ( wchar_t *  飲み物)
inline

drinking function

Simulate drinking something

Parameters
飲み物the meal to eat
Returns
true if 飲み物 is drinkable

Member Data Documentation

unsigned int 動物::年齢
protected

!

age */


The documentation for this class was generated from the following file: