過去問クラブ 学ぶ、わかる、つづく。
ログイン
次の PHP コードを実行した際に出力されるものはどれか。適切なものを以下より 1 つ選択しなさい。

[code]
class hello {
 protected $message;
 public function __construct(){
 $this->message = "web";
 }
 public function hello(){
 print "hello";
 }
}
class bye extends hello{
 public function __construct(){
 $this->message = "design";
 }
 public function hello(){
 print $this->message;
 }
}
$hello = new bye;
$hello->hello();
解答を一つ選択
ログインすると学習履歴を保存できます。