UML cheatsheet

Every once in awhile, I have to draw a UML diagram. I rarely do serious designs with UML, however sometimes I do need to depict some piece of code in a diagram and UML seems to be the best notation around.

Unfortunately, various sources of information on UML tend to over-complicate things. I am not software architect and drawing UMLs is not my job. So my UML skills are poor by definition. Moreover, I am happy with this situation and don’t see it changing in the future (even if I get promoted ;-) ).

So from time to time I need a simple UML reference card. Simple search finds references like this one, which are excellent if you are serious about UML, and I am not.

Eventually, I decided to write a short UML class diagram reference card for myself. I hope you will enjoy it as well.

Inheritance

So, this is how classes inherit one from another. Here Child class inherits from Parent Class.

Use

This is how User class uses Resource class.

Contains and manages

Here, Whole class contains and manages Part class. This type of relation can be extended to one of the following:

  • One to One
  • One to Many
  • Many to One
  • Many to Many

References

Here, Whole class references to Part class, but does not manage it. Again, can be extended with:

  • One to One
  • One to Many
  • Many to One
  • Many to Many

 

This is enough information for now. I’ll probably extend it over time. In any case, please post your corrections and suggestions.

Did you know that you can receive periodical updates with the latest articles that I write right into your email box? Alternatively, you subscribe to the RSS feed!

Want to know how? Check out
Subscribe page

177 Comments

  1. ego 15 string trimmer review

    UML cheatsheet – Alex on Linux

  2. small Leather wallet for women

    UML cheatsheet – Alex on Linux

  3. url says:

    url

    UML cheatsheet – Alex on Linux

  4. log building toys

    UML cheatsheet – Alex on Linux

  5. hatsan air rifles for sale

    UML cheatsheet – Alex on Linux

  6. Tobacco Pipes Accessories

    UML cheatsheet – Alex on Linux

  7. best exercise dvd to lose weight

    UML cheatsheet – Alex on Linux

  8. remanufactured hatsan air rifles

    UML cheatsheet – Alex on Linux

  9. davina 5 week Fit torrent

    UML cheatsheet – Alex on Linux

  10. Full Posting says:

    Full Posting

    UML cheatsheet – Alex on Linux

  11. tablets Computer

    UML cheatsheet – Alex on Linux

  12. leather travel wallet for women

    UML cheatsheet – Alex on Linux

  13. tapparelle wifi

    UML cheatsheet – Alex on Linux

  14. tory burch leather tote

    UML cheatsheet – Alex on Linux

  15. electriq 55 inch 4k ultra hd led tv review

    UML cheatsheet – Alex on Linux

  16. boar’s head liverwurst

    UML cheatsheet – Alex on Linux

  17. Enco benchtop Milling machine

    UML cheatsheet – Alex on Linux

  18. mitutoyo 6 inch digital caliper

    UML cheatsheet – Alex on Linux

  19. electronic digital caliper

    UML cheatsheet – Alex on Linux

  20. ego 15 in. 56-volt lithium-ion electric cordless string trimmer

    UML cheatsheet – Alex on Linux

  21. click through the following page

    UML cheatsheet – Alex on Linux

  22. lucky charms marshmallows

    UML cheatsheet – Alex on Linux

  23. best sex toys

    UML cheatsheet – Alex on Linux

  24. burberry handbags

    UML cheatsheet – Alex on Linux

  25. here says:

    here

    UML cheatsheet – Alex on Linux

  26. asian pov movies

    UML cheatsheet – Alex on Linux

  27. Rockstud top Handle shoulder bag

    UML cheatsheet – Alex on Linux

Leave a Reply to mr jones watches discount code

Prove you are not a computer or die *