Object Oriented Design Tools

1 / 10
About This Presentation
Title:

Object Oriented Design Tools

Description:

How to determine initial objects/methods. CRC Cards. Use Case Diagrams. Module Diagrams. 9/16/09. Komar Associates. 3. Object Oriented Design Characteristics ... –

Number of Views:54
Avg rating:3.0/5.0
Slides: 11
Provided by: joseph120
Category:

less

Transcript and Presenter's Notes

Title: Object Oriented Design Tools


1
Object Oriented Design Tools
  • Joe Komar

2
Overview
  • Object Characteristic
  • How to determine initial objects/methods
  • CRC Cards
  • Use Case Diagrams
  • Module Diagrams

3
Object Oriented Design Characteristics
  • Objects have small methods -- no more than eight
    lines of code
  • Classes have no more than seven (plus or minus
    two) methods
  • Applications should have few, if any, IF
    statements
  • Objects are lazy -- they request information
    before doing it themselves
  • There is a great deal of interaction among
    objects
  • There is some form of User Interface (e.g., GUI)

4
Determining Objects and Methods
  • Collect scenarios -- descriptions of situations
    to be handled and how to handle them
  • Nouns become candidates for objects
  • Verbs become candidates for methods
  • Relationships among objects become clearer

5
A Class Responsibilities Collaborators (CRC) Card
Account
Responsibilities
Collaborators
Know account number
Know account balance
Deposit funds
Withdraw funds
Report Balance
6
Another Example
Pizza
Know Customer
Customer
Determine Cooking Time
Crust, Toppings, Sauce
Determine Delivery Time
Compute its Price
Crust, Toppings, Sauce
Report Cooking Time and Price
GUI
7
Use Case Diagrams
8
Module Diagrams
Class
Inheritance
Collaboration
has a..
Is a kind of
9
Module Diagram
10
Object Oriented Design Tools
  • There are a variety of tools used today
  • No one set of tools seems to be dominant
  • Need to learn what each specific organization
    prefers
Write a Comment
User Comments (0)
About PowerShow.com