Object Modeling: The Example Teaches
- Strategy 1: Ask the Domain Experts to Provide an Example
- Strategy 2: Use an Object Diagram to Illustrate a General Class Diagram
- Summary
"Example is the school of mankind, and they will learn at no other." Edmund Burke |
"Example is always more efficacious than precept." Samuel Johnson |
"The example teaches." Latin proverb |
"Example is not the main thing in influencing others, it is the only thing." Albert Schweitzer |
"Example isn't another way to teach, it is the only way to teach." Albert Einstein |
"I'd rather see a sermon than hear one any day." Edgar A. Guest |
Strategy 1: Ask the Domain Experts to Provide an Example
If you're having trouble visualizing whether a class diagram meets the needs of the business, ask the domain experts to provide a concrete example that you can walk through with them.
Notes
A good example is worth a thousand words of description.
A good example illustrates both the usual occurrences and the types of exceptional cases that may arise.
A good example is complex enough to contain ample teaching points but simple enough to be understood.