I basically want class B to implement a method that's been defined in class A. However when i do so i get the following error.
Strict Standards: Static function A::test() should not be abstract in C:\xampp\htdocs\test1.php on line 4
Here is my PHP code:
<?php
error_reporting( E_STRICT );
abstract class A{
public abstract static function test();
}
class B extends A {
public static function test(){
echo 'Testing';
};
}
echo B::test();