>  > and you can pass information to an
>  > object, as long as what you are passing does not correspond to an
>  > actual property of an object, then I definitely understand.
>
>That is correct.

It doesn't matter.

The method is public, and whether it implements itself by fetching 
private data, or making some calculation is immaterial, to the world 
outside of its "implementation hiding" shield.

As long as you don't have a public method saying "hey, I reveal 
private information!".
If an object wants to provide access to some kind of "state", then it 
does so with a public method. This state, may happen to be directly 
represented by a specific property right now, but later that may 
change, and the world wont ever know nor care. That's the difference 
between the *public* method, and the *private* property.
Jakob


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to