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

178 Comments

  1. Nico says:

    I must say I strongly disagree with this statement: “I am not software architect and drawing UMLs is not my job”. With the same reasoning, writing tests is not my job, it’s QA’s job. And documenting how my software works is not my job either, it’s the technical writers’ responsibility. Although, depending on each project, these three statements might hold some degree of truth a successful software engineer should be able to perform all three tasks with proficiency.

    You may dislike some of the support tasks that software development requires, but knowing your way around each one will give an invaluable insight on how different people in different roles see your software, what these people require and ultimately how to deliver a better work.

  2. @Nico
    Indeed what I’ve written is inviting a comment like yours.

    Anyway, there’s a difference between designing stuff and drawing UML diagrams. I work on a project where there is no habit of drawing UML diagrams and therefore I rarely do it myself. I do write design documents and write tests.

  3. ehab says:

    i almost have the same quick reminder of how UML is like, but i must say the only way you can talk with other about your app architecture is using UML.

    How about SysML?

    regards
    ehab

  4. Nico says:

    You may want to check http://www.agilemodeling.com/essays/umlDiagrams.htm
    Even if it looks a little bit rough, it’s a good way to start learning UML in depth.

  5. @Nico
    This is the kind of things that I didn’t want to use. It’s very long. Way too long to be practical for me. I am sure that someone who is using UML more frequently will enjoy it.

  6. @ehab
    Didn’t use it. But I am curious, so I’ll put it into my “stuff to read” list.
    Thanks.

  7. josh says:

    The way some people talk about UML, you would think you could earn a BSUML degree.

  8. husqvarna chainsaws 350

    UML cheatsheet – Alex on Linux

  9. best leather messenger bags

    UML cheatsheet – Alex on Linux

  10. Walmart Leaf Blowers

    UML cheatsheet – Alex on Linux

  11. orologi acciaio Uomo

    UML cheatsheet – Alex on Linux

  12. tv antennas at home depot

    UML cheatsheet – Alex on Linux

  13. best book lights for reading in Bed

    UML cheatsheet – Alex on Linux

  14. from the Bbs 996flh blog

    UML cheatsheet – Alex on Linux

  15. staples computer printers

    UML cheatsheet – Alex on Linux

  16. women’s bracelets 18k white gold diamond

    UML cheatsheet – Alex on Linux

  17. common woodworking tools

    UML cheatsheet – Alex on Linux

  18. clock radios with cd player

    UML cheatsheet – Alex on Linux

  19. ph saliva test strips

    UML cheatsheet – Alex on Linux

  20. wi-fi mesh system

    UML cheatsheet – Alex on Linux

  21. visit the up coming website

    UML cheatsheet – Alex on Linux

  22. pandora charm bambina

    UML cheatsheet – Alex on Linux

  23. best leaf blower vacuum cordless

    UML cheatsheet – Alex on Linux

  24. video game chairs xbox one

    UML cheatsheet – Alex on Linux

  25. Read the Full Report

    UML cheatsheet – Alex on Linux

  26. best home furnishings reviews

    UML cheatsheet – Alex on Linux

  27. *3200dpi led optical 6d usb wired gaming game mouse pro gamer computer mice for pc*

    UML cheatsheet – Alex on Linux

  28. hd video capture cards

    UML cheatsheet – Alex on Linux

  29. friday night lights book

    UML cheatsheet – Alex on Linux

  30. like it says:

    like it

    UML cheatsheet – Alex on Linux

  31. photo hardwired smoke detectors

    UML cheatsheet – Alex on Linux

  32. laptop messenger bags

    UML cheatsheet – Alex on Linux

  33. basic office skills

    UML cheatsheet – Alex on Linux

  34. oled tvs samsung

    UML cheatsheet – Alex on Linux

  35. america best eyeglasses reviews

    UML cheatsheet – Alex on Linux

  36. fiber optics shooting right

    UML cheatsheet – Alex on Linux

  37. wrist tape baseball players wear

    UML cheatsheet – Alex on Linux

  38. harvest canada

    UML cheatsheet – Alex on Linux

  39. learn more about landfrauen-malmsheim.de

    UML cheatsheet – Alex on Linux

  40. how many tablets does zte make

    UML cheatsheet – Alex on Linux

  41. contact adhesives information

    UML cheatsheet – Alex on Linux

  42. preschool musical instruments

    UML cheatsheet – Alex on Linux

  43. this link says:

    this link

    UML cheatsheet – Alex on Linux

  44. marshmallow fluff cookies

    UML cheatsheet – Alex on Linux

  45. borse a zaino carpisa

    UML cheatsheet – Alex on Linux

  46. ikea furniture

    UML cheatsheet – Alex on Linux

  47. best snow blowers 2021

    UML cheatsheet – Alex on Linux

  48. city of lights book

    UML cheatsheet – Alex on Linux

  49. musical instrument shop near me

    UML cheatsheet – Alex on Linux

  50. best women’s wallet brands

    UML cheatsheet – Alex on Linux

Leave a Reply

Prove you are not a computer or die *