Slides0413 - COP 3330 Slides 4/13 Topics UML Class Diagrams...

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

View Full Document Right Arrow Icon
Slides 4/13 COP 3330
Background image of page 1

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

View Full DocumentRight Arrow Icon
Topics UML Class Diagrams
Background image of page 2
UML Class Diagrams UML stands for Unified Modeling Language There are many types of diagrams specified by UML, but we'll only focus on class diagrams UML class diagrams depict structural relationships among classes
Background image of page 3

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

View Full DocumentRight Arrow Icon
UML Class Diagrams A class is represented as a rectangle subdivided into three areas Example: Simplified Student class
Background image of page 4
UML Class Diagrams A field is specified with its access modifier first, then its name, then a :, then the type - e.g. on the previous slide, the Java code equivalent of the field would be private double gpa;
Background image of page 5

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

View Full DocumentRight Arrow Icon
UML Class Diagrams A method is specified with access modifier first, then its name, then its formal parameters in parentheses, then a :, then its return type - e.g. the Java code equivalent of the method header would be public void setGPA(double newgpa)
Background image of page 6
UML Class Diagrams Access modifiers: The visibility of fields and methods are represented by the first character before their names - Private: - - Public: + - Protected: #
Background image of page 7

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

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/09/2010 for the course CS COP 3330 taught by Professor Douglass during the Spring '09 term at University of Central Florida.

Page1 / 12

Slides0413 - COP 3330 Slides 4/13 Topics UML Class Diagrams...

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

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