- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
- Fatal error: Non-abstract method base::ball() must contain body in /in/Md6h6 on line 8
Process exited with code 255.
<?php
interface superbase {
public static function ball();
public static function foo();
}
abstract class base implements superbase {
public static function ball();
public static function foo(){
echo 'foo';
}
}
class child extends base{
public static function ball(){
echo 'baseball';
}
}
child::foo();
child::ball();