svn: /phpdoc/en/trunk/language/oop5/ visibility.xml
| From: | Christoph Michael Becker | Date: | Wed, 02 Sep 2015 21:58:23 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/oop5/ visibility.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13690@lists.php.net to get a copy of this message | ||
cmb Wed, 02 Sep 2015 21:58:23 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337719
Log:
Protected members cannot be accessed by parent classes
--
Provided by anonymous 62572 (tunght13488@gmail.com)
Changed paths:
U phpdoc/en/trunk/language/oop5/visibility.xml
Modified: phpdoc/en/trunk/language/oop5/visibility.xml
===================================================================
--- phpdoc/en/trunk/language/oop5/visibility.xml 2015-09-02 21:56:38 UTC (rev 337718)
+++ phpdoc/en/trunk/language/oop5/visibility.xml 2015-09-02 21:58:23 UTC (rev 337719)
@@ -8,9 +8,9 @@
<emphasis>protected</emphasis> or
<emphasis>private</emphasis>. Class members declared public can be
accessed everywhere. Members declared protected can be accessed
- only within the class itself and by inherited and parent
- classes. Members declared as private may only be accessed by the
- class that defines the member.
+ only within the class itself and by inherited classes. Members
+ declared as private may only be accessed by the class that defines
+ the member.
</para>
<sect2 xml:id="language.oop5.visibility-members">
@@ -178,7 +178,7 @@
}
}
-$myFoo = new Foo();
+$myFoo = new foo();
$myFoo->test(); // Bar::testPrivate
// Foo::testPublic
?>