<?php
abstract class myBaseClass
{
abstract protected function doSomething();
public function rerere() {
return "...";
}
}
class myClass extends myBaseClass
{
public function doSomething() {
rerere();
}
}
$implementor = new myClass();
$implementor->doSomething();
Fatal error: Uncaught Error: Call to undefined function rerere() in /in/lqhkn:17
Stack trace:
#0 /in/lqhkn(24): myClass->doSomething()
#1 {main}
thrown in /in/lqhkn on line 17
Process exited with code 255.