Right-click each object individually and select Make
an Object. With this method, you can link the two new
objects through their ports without explicitly creating a link between
the ports.
You cannot specify associations
through ports nor specify a link between classes, even if the ends
are connected to ports.