This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: What behavior do these methods encapsulate? Methods: 5. What getter and setter methods would you need or want (for at least one of the classes)? Getters Setters 6. For at least one of these methods, state a precondition, a postcondition and an invariant. Precondition(s) Postcondition(s) Invariant(s) 7. How many instance of each class would you need? Why? I nstances: 8. What errors might these methods be expected to handle? What action would you take for at least one of these errors? Exceptions 9. Please use this space for any additional remarks you care to add. Comments:...
View Full Document
This note was uploaded on 03/01/2012 for the course COP 2800 taught by Professor Geraldreed during the Spring '08 term at Valencia.
- Spring '08