note 47415 deleted from language.oop5.final by aidan
| From: | aidan@php.net | Date: | Tue, 16 Nov 2004 05:51:30 +0000 |
| Subject: | note 47415 deleted from language.oop5.final by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80576@lists.php.net to get a copy of this message | ||
Note Submitter: nobody at domain dot com
----
Documentation says, that "final" keyword can be applied to methods AND variables. This is
not the case in PHP 5.0.2:
final public $var;
results in an error "Cannot declare property Class::$var final, the final modifier is allowed
only for methods". So read-only properties cannot be achieved this way.