Link And Association

Link and Association


  • link and association are the link for establishing relationship among objects and classes
  • LinkedIn physical aur kaun se acha connection between object instance for example Rahul works for Bajaj company
  • an association describe a group of linked with some structure and common semantics for example of personal work for a company
  • all the ink in an association connect object from the same classes
  • associations are inheritance bidirectional. the direction implied by the name is the forward direction the opposite direction is the direction for example work for concept of person to accompany the inverse of work for cold beacause employed and concept of company to a person
  • association afternoon implicated in a programming language as pointer from one object to another pointer is an attribute in one object that contain and explain with reference to another objects
  • for example data structure for person might contain and attributes employee that point to a company object and a company object might contain and attributes in class that point to set of insert object










                    figure. one to one association

  • A link shows a relationship between two or more object
  • about figure shows a 121 association and corresponding drink is a social in the class diagram construction to a state of link in the instance diagram just as each class corresponds to a set of object
  • which country has capital city has capital is the name of association
  • the empty notation for an association is a line between classic a link is draw as a line between object association name are the italicized
  • following figure shows the classes diagram in point be noted the intersection of two or more lines please line has zero or more intersection point the diagram shows the possible set of one















figure. many-to-many association and links

  • line L1 l2 and l3 intersect 2.1 line l3 and l4 interface at point p two line l has no intersection point and thus has no links
  • the solid balls and 2 plus or multiplication symbol multiplicity specify how many instances of classes may relate to each instance of another class


  • association maybe binary ternary aur higher order in practical mostly the associations are binary
  • following figure shows a ternary associations person who are programmers in computer language to develop projects
  • the symbol for general ternary and in every association is diamond with line connecting to related  classes














figure ternary association and links





multiplicity

  • multiplicity specified how many instances of one process mini relates to a single instance of associate associated classes
  • multiplicities can be specified with a number aur set of interval, in 1, oneplus 35 and 24 18
  • Jaya special line Terminator to indicate certain common simplicity value of solid ball is the symbol for many many zero or more balls indicate optional meaning zero of one line without multiplicity symbol indicate a 12121 association
  • insulin figure the association between country and capital shows 121 multiplicity








figure 3.6.1 multiplicity




  • in show figure the association between point and line shows many-to-many multiplicity and line has zero or more intersection points. An intersection point may be associated with two or more lines.






    Following figure shows zero-or-one,or optional,                 multiplicity.








No comments

Theme images by enjoynz. Powered by Blogger.