cvs: phpdoc /en/language/oop5 final.xml

From: Date: Thu, 09 Apr 2009 11:03:39 +0000
Subject: cvs: phpdoc /en/language/oop5 final.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3675@lists.php.net to get a copy of this message
kalle Thu Apr 9 11:03:39 2009 UTC Modified files: /phpdoc/en/language/oop5 final.xml Log: Add a note about only classes and methods may be declared final http://cvs.php.net/viewvc.cgi/phpdoc/en/language/oop5/final.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc/en/language/oop5/final.xml diff -u phpdoc/en/language/oop5/final.xml:1.6 phpdoc/en/language/oop5/final.xml:1.7 --- phpdoc/en/language/oop5/final.xml:1.6 Wed Jun 20 22:24:13 2007 +++ phpdoc/en/language/oop5/final.xml Thu Apr 9 11:03:38 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <sect1 xml:id="language.oop5.final" xmlns="http://docbook.org/ns/docbook"> <title>Final Keyword</title> <para> @@ -7,9 +7,9 @@ overriding a method by prefixing the definition with final. If the class itself is being defined final then it cannot be extended. </para> - - <example> - <title>Final methods example</title> + <para> + <example> + <title>Final methods example</title> <programlisting role="php"> <![CDATA[ <?php @@ -33,9 +33,10 @@ ]]> </programlisting> </example> - - <example> - <title>Final class example</title> + </para> + <para> + <example> + <title>Final class example</title> <programlisting role="php"> <![CDATA[ <?php @@ -55,8 +56,15 @@ // Results in Fatal error: Class ChildClass may not inherit from final class (BaseClass) ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> + <note> + <simpara> + Properties cannot be declared final, only classes and methods + may be declared as final. + </simpara> + </note> </sect1> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#3675) next »