UML Diagrams
- Structure Diagrams
- Class Diagrams
- Deployment Diagrams
- Behaviour Diagrams
- Use Case Diagrams
- Activity Diagrams
- State Machine Diagrams
- Interaction Diagrams
- Sequence Diagrams
Class Diagrams Basics
- Class Contains ClassName, Attributes and Operations
- Class Names are written in Bold or Italic if class is Abstract
-
Attributes
<Visibility><Name>:<Type>=<Defaultvalue><{Modifier}>
Visibility + - Public - - Private ~ - Package # - Protected Name Name of Variable Type Integer, String, Boolean DefaultValue Value by DefaultValue Modifier ReadOnly
-
Operations
<Visibility><Name>(<ParameterList>):<ReturnType>
Visibility + - Public - - Private ~ - Package # - Protected Name Name of Operations ParameterList List of Parameters - Comma Seperarted or Empty ReturnType Integer, String or Another Class
- Static Elements – Static Operations and Attributes are underlined in UML Diagram
Relationships