1130tutorial3

1130tutorial3 - IntroductiontoComputer Programming...

Info iconThis preview shows pages 1–10. 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 DocumentRight 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 DocumentRight 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 DocumentRight 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 DocumentRight 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 DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/28/2010 for the course CSC CSC1110 taught by Professor Cjyuan during the Fall '06 term at CUHK.

Page1 / 29

1130tutorial3 - IntroductiontoComputer Programming...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online