Jump to content
Larry Ullman's Book Forums

Recommended Posts

Larry,

 

In ch 7 Design Patterns I am a little uncertain how to fit the UML diagram on p234 to the Strategy example. I realize that it is a generic conceptual model. I think the Context box could represent the intereface iSort, the Strategy box could represent Both Class MultiAlphaSort {} and Class MultiNumericSort {} and the ConcreteStrategyA{} ... C{} would be represented by Class StudentList{}, if fitted to the Strategy pattern example on pages 235 to 240. Is this correct?

 

I do understand the implementation of the Strategy Pattern example. The reason I am bothering with the UML diagram here is that these diagrams have helped me a great deal when included with the oop chapters.

 

Also, a slightly unrelated comment. If you ever decide to write the fourth edition of this book (which I would buy in a heart beat), I think it would be enhanced by an Appendix devoted to a listing of all the UML syntax. Of course keep the in-context examples of UML as well.

 

Thanks,

JohnD.

Share this post


Link to post
Share on other sites

Sorry, John, for the delayed reply. My summer has been wonky. Do you still need help here? And thanks for the feedback. I've made a note of that for a future edition. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...