<分区>
在面向对象编程术语中,我可以简单地说:
- Member: I mean to say a member of (this) class (which I'm referring to)
但我不知道正确的术语是什么:
- ? : I mean to say a class who has (this thing I'm referring to) as a member
也许我可以使用owner
或parent
。有什么想法吗?
<分区>
在面向对象编程术语中,我可以简单地说:
- Member: I mean to say a member of (this) class (which I'm referring to)
但我不知道正确的术语是什么:
- ? : I mean to say a class who has (this thing I'm referring to) as a member
也许我可以使用owner
或parent
。有什么想法吗?
最佳答案
FWIW C++ 标准在几个地方称此为“包含对象”或“包含类对象”。但它从未正式定义该术语。
我想你可以把相应的类称为“包含类”。
关于c++ - 具有某些成员的类的术语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57782335/