接收者类别的定义

发布于 2024-08-21 14:46:46 字数 75 浏览 3 评论 0原文

接收者类的定义是什么?这是字段的包含类吗?例如,如果字段 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最美的太阳 2024-08-28 14:46:46

我认为这个术语在 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文