بیایید به مثال دیگری نگاه کنیم که در آن متد انتزاعی دارای آرگومان و و کلاس فرزند دو آرگومان اختیاری دارد که در والد تعریف نشده اند روش انتزاعی:
مثال
<?php abstract class ParentClass { // Abstract method with an argument abstract protected function prefixName($name); }
class ChildClass extends ParentClass {
// The child class may define optional arguments that are not in the parent's abstract method public function prefixName($name, $separator = ".", $greet = "Dear") {