Slide 1

Slide 1 text

DETAILED DESIGN WITH UML Software Engineering Process and Practice 18 May 2003 Dr Michael Papasimeon 1

Slide 2

Slide 2 text

OVERVIEW Class Diagrams Inheritance and Abstract Classes Attributes and Associations Roles Aggregation and Composition Association Multiplicity Qualified Associations Programmer Notes 2

Slide 3

Slide 3 text

UML CLASS DIAGRAMS 3

Slide 4

Slide 4 text

ATTRIBUTE AND METHOD VISIBILITY Attributes and methods can be prefixed with symbols to denote if they are private, protected or public. - Private # Protected + Public 4

Slide 5

Slide 5 text

INHERITANCE AND ABSTRACT CLASSES Window DialogWindow Application Window 5

Slide 6

Slide 6 text

ATTRIBUTES AND ASSOCIATIONS 6

Slide 7

Slide 7 text

ASSOCIATIONS 7

Slide 8

Slide 8 text

ASSOCIATION ROLES Window Icon 1 1 -icon identified by 1 1 window 8

Slide 9

Slide 9 text

AGGREGATION AND COMPOSITION 9

Slide 10

Slide 10 text

MULTIPLICITIES IN ASSOCIATIONS Application Window 0..* 1 1 0..* displays +windows +app 10

Slide 11

Slide 11 text

QUALIFIED ASSOCIATIONS Application Window 0..* WindowID : int 1 1 0..* displays +windows +app WindowID : int 11

Slide 12

Slide 12 text

NOTES FOR THE PROGRAMMER Application Window 0..* WindowID : int 1 1 0..* displays +windows +app WindowID : int Implement this association as a linked-list. 12