cvs: phpdoc-de /language/oop5 final.xml
| From: | Mark Wiesemann | Date: | Wed, 15 Apr 2009 19:43:09 +0000 |
| Subject: | cvs: phpdoc-de /language/oop5 final.xml | ||
| Groups: | php.doc.de | ||
| Request: | Send a blank email to doc-de+get-3391@lists.php.net to get a copy of this message | ||
wiesemann Wed Apr 15 19:43:09 2009 UTC
Modified files:
/phpdoc-de/language/oop5 final.xml
Log:
- sync to EN
http://cvs.php.net/viewvc.cgi/phpdoc-de/language/oop5/final.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc-de/language/oop5/final.xml
diff -u phpdoc-de/language/oop5/final.xml:1.5 phpdoc-de/language/oop5/final.xml:1.6
--- phpdoc-de/language/oop5/final.xml:1.5 Mon Dec 1 17:05:38 2008
+++ phpdoc-de/language/oop5/final.xml Wed Apr 15 19:43:09 2009
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.5 $ -->
-<!-- EN-Revision: 1.6 Maintainer: wiesemann Status: ready -->
+<!-- $Revision: 1.6 $ -->
+<!-- EN-Revision: 1.7 Maintainer: wiesemann Status: ready -->
<sect1 xml:id="language.oop5.final" xmlns="http://docbook.org/ns/docbook">
<title>Final-Schlüsselwort</title>
<para>
@@ -8,9 +8,9 @@
Methoden zu überschreiben, indem man der Definition final voranstellt. Wenn die
Klasse selbst als final definiert wird, kann sie nicht erweitert werden.
</para>
-
- <example>
- <title>Beispiele für final-Methoden</title>
+ <para>
+ <example>
+ <title>Beispiel für final-Methoden</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -32,11 +32,12 @@
// Erzeugt einen fatalen Fehler: Cannot override final method BaseClass::moreTesting()
?>
]]>
- </programlisting>
- </example>
-
- <example>
- <title>Beispiel für final-Klassen</title>
+ </programlisting>
+ </example>
+ </para>
+ <para>
+ <example>
+ <title>Beispiel für final-Klassen</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -56,8 +57,15 @@
// Erzeugt einen fatalen Fehler: Class ChildClass may not inherit from final class (BaseClass)
?>
]]>
- </programlisting>
- </example>
+ </programlisting>
+ </example>
+ </para>
+ <note>
+ <simpara>
+ Eigenschaften können nicht als final deklariert werden; nur Klassen und
+ Methoden können als final deklariert werden.
+ </simpara>
+ </note>
</sect1>
<!-- Keep this comment at the end of the file