fork download
  1. <?php
  2.  
  3. abstract class Testing{
  4. public abstract function tester();
  5.  
  6. public function call(){
  7. $this->tester();
  8. }
  9. }
  10.  
  11. class Test extends Testing{
  12. public function tester(){
  13. echo 'test';
  14. }
  15. }
  16.  
  17. $t = new Test();
  18. $t->call();
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
test