A post condition is given
Post: delete the object
So I write code that
Others:
| Method | Post Condition | Problems |
| Draw() | Draw item | What happens to other existing items? |
| Remove() | Remove item | What happens to other existing items? |
| Move() | Move item | What happens to other existing items? |
| ChangeColor() | Change the color of the item | What happens to other existing items? |
ADTs are design by contract. I can implement the job any way I want as long as I meet your specs.
Be careful of what you say your specs are.
Discuss:
Pre: Not Applicable
as opposed to "none"