UML Diagrams

  1. Structure Diagrams
    • Class Diagrams
    • Deployment Diagrams
  2. Behaviour Diagrams
    • Use Case Diagrams
    • Activity Diagrams
    • State Machine Diagrams
  3. Interaction Diagrams
    • Sequence Diagrams

Class Diagrams Basics

  1. Class Contains ClassName, Attributes and Operations
  2. Class Names are written in Bold or Italic if class is Abstract
  3. 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
    
  4. 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  
    
  5. Static Elements – Static Operations and Attributes are underlined in UML Diagram

Relationships

Posted in UML.

Comments are closed.