mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Protected properties are visible from parents too (bug #34060)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@194572 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9a122ed83f
commit
ee03d7c8ef
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<sect1 id="language.oop5.visibility">
|
||||
<title>Visibility</title>
|
||||
<para>
|
||||
The visibility of a property or method can be defined by prefixing the
|
||||
declaration with the keywords: public, protected or private. Public
|
||||
declared items can be accessed everywhere. Protected limits access to
|
||||
inherited classes (and to the class that defines the item). Private limits
|
||||
visibility only to the class that defines the item.
|
||||
inherited and parent classes (and to the class that defines the item).
|
||||
Private limits visibility only to the class that defines the item.
|
||||
</para>
|
||||
<sect2 id="language.oop5.visiblity-members">
|
||||
<title>Members Visibility</title>
|
||||
|
|
Loading…
Reference in a new issue