no message
This commit is contained in:
18
Question13-Inheritance/common/Hero.php
Normal file
18
Question13-Inheritance/common/Hero.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace inheritance\Common;
|
||||
|
||||
require_once __DIR__ . '/Character.php';
|
||||
|
||||
class Hero extends Character
|
||||
{
|
||||
|
||||
/**
|
||||
* Hero クラスのコンストラクタ
|
||||
* Character のコンストラクタを利用して初期値(HP:25, POWER:10, ENDURANCE:7)を設定
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct(25, 10, 7);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user