CPP01 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
Zombie クラス

Represents a Zombie. [詳解]

#include <Zombie.hpp>

Zombie 連携図
Collaboration graph

公開メンバ関数

 Zombie ()
 Default constructor for the Zombie class.
 
 Zombie (std::string name)
 Parameterized constructor for the Zombie class.
 
 ~Zombie ()
 Destructor for the Zombie class.
 
void announce (void)
 Announces the zombie.
 
 Zombie ()
 Default constructor for the Zombie class.
 
 Zombie (std::string name)
 Parameterized constructor for the Zombie class.
 
 ~Zombie ()
 Destructor for the Zombie class.
 
void announce (void)
 Announces the zombie.
 

詳解

Represents a Zombie.

Zombies have a name and can announce themselves.

Zombie.hpp30 行目に定義があります。

構築子と解体子

◆ Zombie() [1/4]

Zombie::Zombie ( )

Default constructor for the Zombie class.

Initializes a Zombie object with the default name "default".

Zombie.cpp25 行目に定義があります。

◆ Zombie() [2/4]

Zombie::Zombie ( std::string  name)

Parameterized constructor for the Zombie class.

Initializes a Zombie object with the given name.

引数
nameThe name of the zombie.

Zombie.cpp34 行目に定義があります。

◆ ~Zombie() [1/2]

Zombie::~Zombie ( )

Destructor for the Zombie class.

Prints a message indicating the zombie has been destroyed.

Zombie.cpp41 行目に定義があります。

◆ Zombie() [3/4]

Zombie::Zombie ( )

Default constructor for the Zombie class.

◆ Zombie() [4/4]

Zombie::Zombie ( std::string  name)

Parameterized constructor for the Zombie class.

◆ ~Zombie() [2/2]

Zombie::~Zombie ( )

Destructor for the Zombie class.

関数詳解

◆ announce() [1/2]

void Zombie::announce ( void  )

Announces the zombie.

Prints the zombie's name followed by "BraiiiiiiinnnzzzZ...".

Zombie.cpp48 行目に定義があります。

◆ announce() [2/2]

void Zombie::announce ( void  )

Announces the zombie.


このクラス詳解は次のファイルから抽出されました: