UML class diagram

Date: February 2nd 2016
Last updated: February 2nd 2016

A class diagram shows a detailed static picture of classes. Each class is detailed with attributes, methods and relationships. The main components are the boxes containing classes.

Classes:

  • A class box contains 3 parts
  • Class box - top: title in CamelCase and bold
  • Class box - middle: class attributes
  • Class box - bottom: class methods

Class members:

  • Annotate class attributes and methods with privacy
  • plus (+) - public
  • minus (-) - private
  • hash (#) - protected

Relationships:

  • Association - line connecting two classes

results matching ""

    No results matching ""