Posted by Janwillem Borleffs on 05/31/06 21:06
Areric wrote:
> In PHP4 is there a way to mark a method in a class as non-overridable
> (i.e. sealed or final). From what i understand, by default all methods
> are virtual.
>
Indeed, this is not supported by PHP 4;
> What about PHP5?
>
By using the "final" keyword:
final function Foo() {}
JW
Navigation:
[Reply to this message]
|