回答編集履歴

2

修正

2019/03/25 08:31

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- public function get_names(int $index=null)
33
+ public function sayHi(int $index=null)
34
34
 
35
35
  $name = array_key_exists($index,$this->names)? $this->names[$index]:'No Name';
36
36
 

1

最後手抜きしてしまったので修正。

2019/03/25 08:31

投稿

m.ts10806
m.ts10806

スコア80850

test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
 
32
32
 
33
- public function sayHi($index) {
33
+ public function get_names(int $index=null)
34
34
 
35
35
  $name = array_key_exists($index,$this->names)? $this->names[$index]:'No Name';
36
36