User
and BlogPost
as per diagram below.
User
object has many BlogPost
objects.BlogPost
object has many User
objects.Favorite
.Favorite
classclass
declaration for Favorite
.---
declaration to specify new association between User
and BlogPost
classes."user *"
on User
side to specify multiplicity *
and role name user
."post *"
on BlogPost
side to specify multiplicity *
and role name post
.(User, BlogPost)
to specify that association class will be on preceding association between these classes... Favorite
on end of declaration to specify Favorite
class as association class.