A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Architect Certification (SCEA/OCMJEA)
To use or not to use Association Class
Joined: Jul 03, 2007
Jun 18, 2008 22:14:00
For part2 of the
I am drawing the class diagram.
I am confused; when shud one use/ not-use an Association Class
when showing an asscociation between 2 classes.
Could some body provide a clear example (maybe code) to make it clear?
UML tools allow a line to be drawn between the classes
(with or without arrows; to indicate direction)
One end of the line can be diamond (filled for composition and unfilled for aggregations)
Cameron Wallace McKenzie
author and cow tipper
Joined: Aug 26, 2006
Jun 19, 2008 07:44:00
I don't explicity define the association class, but imply it through the association link in the class diagram. The actual object type used for the code becomes an low-level implementation detail that I could care less about.
subject: To use or not to use Association Class
association relation in class diagram
Association or Not
Dependency vs. Association
iBatis and Bidirectional Association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015