Line to/from specific class member

0 votes
asked Mar 8 in Closed question / help by Ximon Eighteen

Hi,

Given the following diagram, how can I make the line go from member b to member g, rather than just from some point on Foo to some point on Bah?

@startuml
left to right direction

class Foo {
  a
  b
  c
  d
}

class Bah {
  e
  f
  g
  h
}

Foo --> Bah
@enduml

1 Answer

0 votes
answered Mar 8 by plantuml (177,260 points)

You can have

@startuml
left to right direction

class Foo {
  a
  b
  c
  d
}

class Bah {
  e
  f
  g
  h
}

Foo::a --> Bah::f
@enduml

http://www.plantuml.com/plantuml/uml/DSqx3W8n38JXtgUO2-m5Kg0L1VSmUMmYXRMKc0fnToP8MtpLRslswJhy_UhISt6uORIZEb8RENgpKoHsdHCFCtm4K7fIf2JVAz-r_dEcGWVLbVaNWcBRRkicX29xFXC7Vm00

commented Mar 8 by Ximon Eighteen
Thank you very much for the quick and accurate response!
...