Object-oriented software construction (2nd ed.)
Object-oriented software construction (2nd ed.)
Object Oriented Design and Patterns
Object Oriented Design and Patterns
IEEE Transactions on Software Engineering
Hi-index | 0.00 |
The paper discusses a programming assignment in a junior-level Programming Languages course whose main effect was to clarify the importance of explicitly stating method assumptions in object-oriented programming. We argue further that where the cost of checking a method assumption is small, it should be the responsibility of the supplier class, rather than the client class, to enforce the assumption, quietly if possible. The student assignment which clarified this issue is presented and discussed.