Mar
1
2012

Class Diagram Relationships in UML with Examples







Related Posts

About the Author: Nishadha Silva

Software engineer turned tech evangelist. I handle marketing stuff here at Creately including writing blog posts and handling social media accounts. In my spare time I love to read and travel. I write about marketing stuff in my digital marketing blog. Since you are here make sure to follow @Creately for awesome online diagramming tips.

15 Comments + Add Comment

  • aggregation an composition in a class diagramm are shown by the diamond on the aggregate calss side . It means the “Library” calss will have the diamond and not the “Books”. Very common mistake, most if the beginners make.

    thanks noway

  • Hi noway,
    You’re correct. We have corrected the mistake now. Thanks for taking the time to point that out.

  • thank u
    very nice…………..

  • Hi Nishi, its a great blog man. I just accidently came across this when browsing web.

    Great work!! Keep it up.

  • Hi Nishada,your explanation is very clear to understand,can you send me the class modelling example of hospitality management system.

  • Hi Rajasekhar,
    You can browse through our UML class diagrams examples and find a good one that matches your needs.

  • Hi Nishadha, your explanation was very informative,can you send me the class modellind diagram for bill splitting applications

  • nice effort to help people… i appreciate :)

  • Your explanation of the reflexive association strikes me as odd.

    Your explation of reflexive depicts an association class between ‘airport’ and ‘staff’ in which the association depicts the ‘multiple roles’ of the particular ‘staff’ in regard to the ‘airport’.

    The reflexive association, to me, depicts the situation of a relation between equally typed instances, for example, like in a mesh network or in a (genealogical) parent – child construction of type Person.

    Also consider adding the association class as a conceptual class relationship construct.

  • Hi Agecoat,
    Thanks for visiting and leaving a comment. I think the example is valid but a better job could be done by adding an example. I have added an example to make it more clear.

  • Thanks a lot.. I was little confused about simple and directed associations but your post cleared my doubt.

  • hey hii can you help us out in making er diagram for our project…

  • Hi Satish,
    Maybe you can refer our ER diagram tutorial to help with your project.

  • nice points which u have clear to me….can u have explain class diagram of online examination….

  • Hi, I have a query. Can realization relationship exist between a Package and an Interface? Can we draw a realization relation (Empty head arrow) between a Package and an Interface in UML?

Leave a comment

This blog uses premium CommentLuv which allows you to put your keywords with your name if you have had 9 approved comments. Use your real name and then @ your keywords (maximum of 3)

About Creately

Creately is an easy to use Online Diagramming software - purpose built for team collaboration. Powerful features and an intuitive interface make Creately ideal for teams working together on everything from Business Diagrams, Strategy Maps, Flowcharts, Web Mockups to UML designs.

Here we share our experiences and lessons learnt building a web-company.

Creately Facebook

Creately on Facebook

Archives

Categories