Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urgent query on scja uml

 
paarul saxena
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the answer to this question varies in mocks...
when class p is associate to class q with the multiplicity defined as *(many) on p side and 1 on q side...i.e many instnaces of q are associated with p...
which is the right answer??
class P{
Q q;
}
class Q
{
P[]p;
}
or
class P {}
class Q
{
P[]p;
}
 
Anand Shrivastava
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you say * on p side and 1 on q side

Something like this

P------------Q
*------------1

It means P has one q and Q has 0..* Ps.
In that case your first option would be correct.
[ August 25, 2008: Message edited by: Anand Shrivastava ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic