Search code examples
c++classooplanguage-agnosticmember

Terminology for a class who has something as a member


In object oriented programming terminology, I can simply say:

- Member: I mean to say a member of (this) class (which I'm referring to)

But I don't know what is the correct terminology for this:

-   ?   : I mean to say a class who has (this thing I'm referring to) as a member

Maybe I can use owner or parent. Any idea?


Solution

  • FWIW the C++ standard calls this "containing object" or "containing class object" in a couple of places. It never formally defines the term though.

    I guess you can call the corresponding class "the containing class".