<?php abstract class Foo { // self-referential 'abstract' declaration const NAME = self::NAME; } class Fooling extends Foo { // Overrides definition from parent class // Without this declaration, an error will be triggered const NAME = 'Donald'; }
You have javascript disabled. You will not be able to edit any code.