Re: @protected variable access
Re: @protected variable access
- Subject: Re: @protected variable access
- From: Ondra Cada <email@hidden>
- Date: Sun, 12 Sep 2004 13:28:11 +0200
Hi,
On 12.9.2004, at 12:55, Marcel Weiher wrote:
No, @protected is absolutely right in the context of OO as discussed
above. The object is the encapsulation boundary, not the class.
Perhaps I did not expressed myself clearly: of course it is right,
*but* what I say is that in a vast majority of cases it is not a good
design to access properties directly from subclass code (in other
words, to exploit the very possibility @protected gives over @private).
Not that there are no cases for it, but in my opinion such cases are
pretty rare.
Don't you agree? Why?
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden