flash - How to draw a UML Class\Interface hierarchy, identifying which nodes are classes and which are interfaces -
task1: movies in movie store application, asked consider following kinds of movies:
movie, class describing kinds of movies.
action, movie containing lots of explosions.
romance, movie romantic interest drives plot
comedy, movie largely humorous content
mystery, - dunnit movie
rescue, hybrid action - romance movie, main character attempts save or romantic interest doom.
romantic comedy, hybrid romance – comedy large amounts of both humorous , romantic content.
hollywood blockbuster, action – romance - comedy – mystery movie designed please crowds.
what interfaces , classes use represent previous list of movies? write answer drawing uml class/interface hierarchy, identifying nodes classes , interfaces. note there must class each type of movies, may use interfaces require preserve relationships between types.
resulting uml structure task can on diagram below. there 2 possible ways it.
define movie class attribute named category. category enumeration type. instance of move belongs category.
use abstract movie class , created specialization structure. specialized types of movies classes. define generalization set tree. specialized types generalized category type.
i not think there interfaces. afraid interface nothing relationship preservation.
Comments
Post a Comment