100 likes | 212 Views
9/11/2012. Komar Associates. 2. Overview. Object CharacteristicHow to determine initial objects/methodsCRC CardsUse Case DiagramsModule Diagrams. 9/11/2012. Komar Associates. 3. Object Oriented Design Characteristics . Objects have small methods -- no more than eight lines of codeClasses have n
E N D
1. 9/11/2012 Komar Associates 1 Object Oriented Design Tools Joe Komar This is a relatively young area.
Show the books written and current trend toward one tool (Universal Modeling Language)This is a relatively young area.
Show the books written and current trend toward one tool (Universal Modeling Language)
2. 9/11/2012 Komar Associates 2 Overview Object Characteristic
How to determine initial objects/methods
CRC Cards
Use Case Diagrams
Module Diagrams
3. 9/11/2012 Komar Associates 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) These are guidelines and characteristics, but should be followed except in rare situations.These are guidelines and characteristics, but should be followed except in rare situations.
4. 9/11/2012 Komar Associates 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. 9/11/2012 Komar Associates 5 A Class Responsibilities Collaborators (CRC) Card