3 ms·
> That is, if you have a reference to an object or value, you have the authority to invoke any of the methods on that object or call any functions that accept s
by saghm 10y ago
> That is, if you have a reference to an object or value, you have the authority to invoke any of the methods on that object or call any functions that accept such a value.
Except private methods, right? That's where I feel that this analogy breaks down
- naasking 10y agoYes, you can only invoke the publicly interface of an object. It's not an analogy, object references really are capabilities.