参考書の写経ですが、下記コードがAtomでエラーと言われます。実際動かすとエラーになっていました。なぜですかね。ちなみに7行目でエラーでてます。
Fatal error: Class Game contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (GameBook::newGame)
php
1<?php 2 3interface GameBook 4{ 5 public function newGame($point); 6 public function play(); 7 public function isAlive() : bool ; 8}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/10/20 13:58 編集