Ythio Csi
Ythio Csi

Reputation: 379

UML - What is relationship when a class instance is declared in method

I would like to know how the following relationship is called in UML and how it is marked on a class diagram ? Is that a constrained dependency relationship, marked by dotted arrow ?

public class A {}

public class B
{
    public foo()
    {
       A a = new A();
    }
}

Upvotes: 0

Views: 43

Answers (1)

qwerty_so
qwerty_so

Reputation: 36313

Yes, exactly. It's

B - - - > A

Upvotes: 1

Related Questions