1 / 16

A Student Guide to Object-Oriented Development

A Student Guide to Object-Oriented Development. Chapter 10 Designing objects and classes. Detailed design activities. Revisit class diagram to add implementation details Revisit interaction diagrams to add implementation detail. Class diagram.

kingclyde
Download Presentation

A Student Guide to Object-Oriented Development

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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. Entityclasses • 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. visibility name initial-value type-expression Attribute signature: Bike class attribute - deposit #deposit : Integer = 0

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

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

  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. Sequence diagrams: iteration 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

More Related