Re: private, protected, readonly, public
| From: | Marcus Boerger | Date: | Wed, 17 May 2006 19:12:11 +0000 |
| Subject: | Re: private, protected, readonly, public | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23552@lists.php.net to get a copy of this message | ||
Hello Sebastian,
it simply means that derived classes cannot write that variable.
Other languages already allow that and it is actually very convenent.
One of the things i really liked about Borland C++. In contrast
"protected readbale" means that dervied classes may also write that
thing in question.
best regards
marcus
Wednesday, May 17, 2006, 10:26:58 AM, you wrote:
> Marcus Boerger wrote:
>> private readable $abc;
>> - class itself can read and write
>> - public for everybody when reading, inside & outside of the class
> This means that a private attribute becomes part of the public interface
> of a class. I am not sure if this really is desirable.
> --
> Sebastian Bergmann
> http://www.sebastian-bergmann.de/
> GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69
Best regards,
Marcus