clear up implementation paragraph and add not about extending an abstract class' abstract methods

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@192320 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sean Coates 2005-08-03 16:06:08 +00:00
parent c4b65b4b25
commit b668dccf1f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- $Revision: 1.11 $ -->
<sect1 id="language.oop5.abstract">
<title>Class Abstraction</title>
@ -12,10 +12,12 @@
</para>
<para>
The class that implements the abstract method must define with the same
<link linkend="language.oop5.visibility">visibillity</link> or weaker. If the
abstract method is defined as protected, the function implementation must be
defined as either protected or public.
When inheriting from an abstract class, all methods marked abstract in
the parent's class declaration must be defined by the child; additionally,
these methods must be defined with the same (or weaker)
<link linkend="language.oop5.visibility">visibillity</link>. For example,
if the abstract method is defined as protected, the function implementation
must be defined as either protected or public.
</para>
<example>