curt Sat Aug 7 14:11:34 2004 EDT
Modified files:
/phpdoc/en/language/oop5 abstract.xml
Log:
Implenting method must be equal or weaker to abstract signature.
http://cvs.php.net/diff.php/phpdoc/en/language/oop5/abstract.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/language/oop5/abstract.xml
diff -u phpdoc/en/language/oop5/abstract.xml:1.3
phpdoc/en/language/oop5/abstract.xml:1.4
--- phpdoc/en/language/oop5/abstract.xml:1.3 Sun Aug 1 23:12:59 2004
+++ phpdoc/en/language/oop5/abstract.xml Sat Aug 7 14:11:34 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<sect1 id="language.oop5.abstract">
<title>Object Abstraction</title>
@@ -11,6 +11,13 @@
define the implementation.
</para>
+ <para>
+ The class that implements the abstract method must define with the same
+ <link linkend="oop5.visibility">visibillity</link> or weaker. If the
+ abstract method is defined as protected, the function implenetation must be
+ defined as either protected or public.
+ </para>
+
<example>
<title>Abstract class example</title>
<programlisting role="php">
@@ -59,7 +66,6 @@
Old code that has no user-defined classes or functions named
'abstract' should run without modifications.
</para>
-
</sect1>
<!-- Keep this comment at the end of the file