Download presentation
Presentation is loading. Please wait.
1
1 CS 426 Senior Projects Chapter 7: Classes and Objects & Chapter 8: Finding Analysis Classes [Arlow and Neustadt, 2002] February 14, 2006
2
2 Outline Objects UML Notation for Objects Classes UML Notation for Classes UP Activity: Analyze Use Cases Analysis Classes Finding Analysis Classes
3
3 Objects Object = “A discreet entity with well-defined boundary that encapsulates state and behavior, an instance of a class” [J. Rumbaugh] Properties of objects: Identity State Behavior
4
4 Objects: Encapsulation Fig. 7.2 [Arlow & Neustadt, 2002]
5
5 Objects: Messaging Figure 7.3 [Arlow & Neustadt, 2002]
6
6 Objects: UML Notation Figure 7.4 [Arlow & Neustadt, 2002]
7
7 Classes Class = “The descriptor for a set of objects that share the same attributes, operations, methods, relationships, and behavior” [J. Rumbaugh] Every object is an instance of exactly one class Choosing the right classification scheme is a key factor in object-oriented analysis and design
8
8 Classes: Classification of Objects Figure 7.5 [Arlow & Neustadt, 2002] Classifying objects determining classes
9
9 Classes: Relationship with Objects. Figure 7.6 [Arlow & Neustadt, 2002] > relationship
10
10 Classes:.Relationship with Objects The > relationship is a stereotype of the dependency relationship Dependency: “A relationship between tow elements in which a change to one element (the supplier) may affect or supply information needed by the other element (the client)”.
11
11 Classes: UML Notation…… Figure 7.7 [Arlow & Neustadt, 2002]
12
12 Classes:.UML Notation….. Figure 7.8 [Arlow & Neustadt, 2002] The attribute compartment
13
13 Classes:..UML Notation…. Table 7.3 [Arlow & Neustadt, 2002] Visibility types
14
14 Classes: …UML Notation… Table 7.4 [Arlow & Neustadt, 2002]: Visibility semantics in UML, Java and C#
15
15 Classes: ….UML Notation.. Figure 7.10 [Arlow & Neustadt, 2002] Operations
16
16 Classes: …..UML Notation. Figure 7.11 [Arlow & Neustadt, 2002] Class stereotypes
17
17 Classes: ……UML Notation Figure 7.13 [Arlow & Neustadt, 2002] Constructors Figure 7.14 [Arlow & Neustadt, 2002] Class Scope
18
18 Classes: Analysis Classes.. Figure 8.2 [Arlow & Neustadt, 2002]
19
19 Classes:.Analysis Classes. Figure 8.3 [Arlow and Neustadt, 2002] Example of Analysis Class
20
20 Classes:..Analysis Classes Figure 8.4 [Jim Arlow and Ila Neustadt, 2002] Brainstorming, part of CRC analysis technique
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.