mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
reworded visibility explenation & fixed typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237219 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
17df138124
commit
5435394431
1 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.13 $ -->
|
||||
<!-- $Revision: 1.14 $ -->
|
||||
<sect1 id="language.oop5.abstract">
|
||||
<title>Class Abstraction</title>
|
||||
|
||||
|
@ -14,10 +14,10 @@
|
|||
<para>
|
||||
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,
|
||||
these methods must be defined with the same (or a less restricted)
|
||||
<link linkend="language.oop5.visibility">visibility</link>. For example,
|
||||
if the abstract method is defined as protected, the function implementation
|
||||
must be defined as either protected or public.
|
||||
must be defined as either protected or public, but not private.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
|
|
Loading…
Reference in a new issue