note 111317 added to language.oop5.visibility
| From: | subone at subone dot org | Date: | Tue, 05 Feb 2013 23:22:28 +0000 |
| Subject: | note 111317 added to language.oop5.visibility | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193538@lists.php.net to get a copy of this message | ||
It seems the text:
"Members declared protected can be accessed only within the class itself and by inherited and
parent classes."
should read:
"Members declared protected can be accessed only within the class itself and by *inheriting*
and parent classes."
The current wording does not seem to allow for a child class accessing the protected member of the
parent class. I've seen some posts around the net suggesting that this is what people are
getting from reading this.
Also, given that there seems to be some confusion over the word "inherited", perhaps it
should be "child", "derived", or "descendant".
----
Server IP: 69.147.83.199
Probable Submitter: 204.12.75.188
----
Manual Page -- http://php.net/manual/en/language.oop5.visibility.php
Edit -- https://master.php.net/note/edit/111317
Del: integrated -- https://master.php.net/note/delete/111317/integrated
Del: useless -- https://master.php.net/note/delete/111317/useless
Del: bad code -- https://master.php.net/note/delete/111317/bad+code
Del: spam -- https://master.php.net/note/delete/111317/spam
Del: non-english -- https://master.php.net/note/delete/111317/non-english
Del: in docs -- https://master.php.net/note/delete/111317/in+docs
Del: other reasons-- https://master.php.net/note/delete/111317
Reject -- https://master.php.net/note/reject/111317
Search -- https://master.php.net/manage/user-notes.php