post-conditions Questions

3

I'm learning how to program but one thing I can't quite get my head around is preconditions and postconditions. Is an if statement before calling a function considered a precondition, or is there ...

5

Actual precondition of a subtype is created by combining ( using logical OR ) preconditions of a base type and preconditions of a subtype, which makes the resulting precondition less restrictive A...

3

Solved

I am interested in the Design by Contract approach. It seems that for preconditions checked exceptions must be used to enforce them. But for post-conditions and class-invariants I think that assert...
Pompey asked 25/12, 2012 at 18:31
1

© 2022 - 2024 — McMap. All rights reserved.