Re: Sealing a method in a php class
- From: "Janwillem Borleffs" <jw@xxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 23:06:49 +0200
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
.
- References:
- Sealing a method in a php class
- From: Areric
- Sealing a method in a php class
- Prev by Date: Twiki e Dokuwiki: quali sono le differenze?
- Next by Date: Re: Does any one know how to use php to connect sybase 5.5?
- Previous by thread: Sealing a method in a php class
- Next by thread: Twiki e Dokuwiki: quali sono le differenze?
- Index(es):