Tuesday, 5 February 2013

Associatrions


  • An association is where objects are related to each other in some fashion
  • For example a human object that watches a television object is associated to that television object
  • In this situation, the association might be called turn on as the association begins when the human turns the TV on. This association is unidirectional
  • Other associations such as marriage are bi-directional
  • In some cases an object may be associated with another object in more than way.
  • It is possible for a class of objects to be associated with one or more other classes
  • Multiplicity is the specification of how many objects in one class relate to a single object of an associated class
  • For example one lecturer teaches the students in this class, however many students are taught by this one lecturer

No comments:

Post a Comment