接收者类别的定义
接收者类的定义是什么?这是字段的包含类吗?例如,如果字段 b 位于名为 Foo 的类中,那么 Foo 是接收器类?
谢谢
What is the definition of a reciever class? Is this the containg class of a field? For example, if field b is in a class named Foo, then Foo is the reciever class?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这个术语在 iPhone 编程中出现得更频繁。在 Objective-C 中,您不会调用对象的方法,而是向该对象发送消息,然后该对象决定是否处理该消息。由于 Objective-C 是从 Smalltalk 借用的,因此您可能应该在该上下文中查找该术语。您使用什么语言?
I think the term comes up in iPhone-Programming more often. In Objective-C you do not call a method on an object but you send a message to that object and the object decides whether it will handle it or not. Since Objective-C borrwos from Smalltalk you should probably look for the term in that context. What language do you use?