我是OOP的新手,在一次学习练习中遇到了这个错误。abstract methods and must therefore be declared abstract or implement the remaining methods
该错误是从实现接口的抽象类的子类引发的我理解抽象类的子类必须实现所有抽象方法,但我不会在父类或接口中声明任何抽象方法。如果我没有在子类中包含从
关键词抽象在界面中的意义是什么?我试图在界面中写抽象关键字。interface I abstract function test (); public function test>Fatal error: Access type for interface method I::test() must be omitted in test.php on line 4但是这里所有的方法</
我只是写了这样的代码:class test// Force Extending class to define this method当我运行这段代码时,我收到以下错误:
致命错误:类测试包含两个抽象方法,因此必须在第12行的( C:\wamp64\www\study\abstract.php )中声明抽象C:\wamp