What UML relationship is in between class A and B, where A uses methods of B in order to create its instance and then uses it inside own (A's) class?
Is it a dependency? e.g A -----------> B

e.g how to depict relationship between Sender and Invite in the below code?

```
class Sender{

   public void sendInvite(){
     ....
     Invite i = Invite.getInstance();
     ....
   }

}

class Invite{
   ...
   public static Invite getInstance(){
     ...
   }
}

```

Note: once we return from method sendInvite() we do not store any link to class Invite anymore.