```
class ClassA {
    private JFrame frame = new JFrame(); // has-a, composition 

    public ClassA() 
    {
       frame.add(new ClassB());
    }       
}

```

is there a name for the relationship/association between ClassA and Classb? ClassA does not have a field for ClassB.

I have read about class associations in "Introduction to Java Programming" by Y. Daniel Liang and used google, but can't find an example with this specific relation.

i'm drawing an UML diagram of some existing code and want to get the correct relation annotation.

Maybe i'm overthinking it and it's just simply an association?