Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question on Command pattern from GoF book  RSS feed

 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Had a quick question on the Command pattern:

The Structure diagram of Command pattern in the GoF book shows a straight arrow of "Client" towards "Receiver" and a dotted arrow from "Client" to "ConcreteCommand".

Can anyone please tell me why a straight line and a dotted line if they both mean the same thing that there is a reference.


Thanks in advance,
Sai
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The dotted arrow models a dependency, while the solid arrow models an association.
 
Sai Swami
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot Jelle !
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!