]> granicus.if.org Git - php/commitdiff
Document 'final'.
authorSebastian Bergmann <sebastian@php.net>
Fri, 7 Mar 2003 11:51:19 +0000 (11:51 +0000)
committerSebastian Bergmann <sebastian@php.net>
Fri, 7 Mar 2003 11:51:19 +0000 (11:51 +0000)
Zend/ZEND_CHANGES

index a983c33f387d8fb00cd5d53fbe2a7a94ffcae0bf..dc1aa23a909a79758ae8dd3abec95455ac761f67 100644 (file)
@@ -205,6 +205,25 @@ Changes in the Zend Engine 2.0
 
       This syntax only applies to objects/classes, not built-in types.
 
+    * final.
+
+      The Zend Engine 2.0 introduces the "final" keyword to declare
+      final members and methods. Those cannot be overridden by
+      sub-classes.
+
+      Example:
+
+        <?php
+        class Foo {
+          final function bar() {
+            // ...
+          }
+        }
+        ?>
+
+      Old code that has no user-defined classes or functions named 
+      'final' should run without modifications.
+
     * Object Cloning.
 
       The Zend Engine 1.0 offered no way a user could decide what copy