Re: Sealing a method in a php class



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


.