Presentation is loading. Please wait.

Presentation is loading. Please wait.

A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes.

Similar presentations


Presentation on theme: "A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes."— Presentation transcript:

1 A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes

2 Detailed design activities Revisit class diagram to add implementation details Revisit interaction diagrams to add implementation detail

3 Class diagram Add new classes e.g. interface and control classes Specify technical details of associations between classes Specify visibility of classes, attributes and operation Specify attributes in detail Specify operations in detail

4 Different types of classes Entity classes Boundary classes Control classes

5 Entity classes Model features of the problem domain e.g. bikes, customers, hires Also known as domain or application classes All of the classes so far have been entity classes

6 Boundary classes Model the system’s interface with its actors Used to capture user input and present results

7 Control classes Control the sequencing of events (e.g. in the execution of a use case scenario) In a system of any size we expect a boundary and a control object for each use case

8 Attribute signature: Bike class attribute - deposit #deposit : Integer = 0 visibility name type-expression initial-value

9 +findBike(bike# : Integer) : Bike visibility name parameter list Return-type Operation signature:Bike class - findBike(bike)

10 Wheels collaboration diagram for use case ‘Maintain Bike’, ‘Add new bike’ scenario Control object :MaintainBike added Interface object :MaintainBikeUI added

11 Collection class in use Sequence diagram showing how the collection class works

12 Sequence diagrams: object creation and deletion the interface object :MaintainBikeUI is created and destroyed in this interaction

13 Sequence diagrams: iteration

14 everything inside the rectangle is repeated while there are more bikes to add

15 Sequence diagrams: conditional behaviour and branching conditions should be mutually exclusive

16 Wheels: design sequence diagram


Download ppt "A Student Guide to Object- Oriented Development Chapter 10 Designing objects and classes."

Similar presentations


Ads by Google