{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

1130tutorial3 - Programming TutorialNotes3 CSC1130 1 (UML...

Info iconThis preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
    1 CSC1130 Introduction to Computer  Programming Tutorial Notes 3
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
    2 Unified Modeling Language  (UML) A standard language (or diagram notation) for specifying,  visualizing and documenting the models of a software  system Belongs to the Object Management Group (OMG) Standard  graphical  notation for object-oriented modeling It is  not  a programming language
Background image of page 2
    3 UML Overview Diagrams Class diagrams Use case diagrams Sequence diagrams  Activity diagrams
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
    4 Class Diagram One of the UML diagram  types Define  static structural  model  of things that exist  and their  relationship
Background image of page 4
    5 Class Diagram Three compartments Name, Attributes, Operations Can define more compartments Either or both the attribute and operation  compartments may be suppressed Operation Name Attributes
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
    6 Class Diagram Attribute format visibility   name  :  type  = default value Operation format visibility   name   (parameter list)  :  return type
Background image of page 6
    7 Class Diagram Visibility (will be discussed in lectures later) +   public visibility   #   protected visibility private visibility ~   package visibility Type int string , user defined
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
    8 Class Diagram Parameter list  format kind   name  :  type  = default value Kind in  – an input parameter out  – an output parameter inout  – an input parameter that may be modified
Background image of page 8
    9 Class Diagram Two Examples:
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
    10
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}