Join 75,000+ students acing their exams with Studygenie
Unlimited practice
Flashcards, multiple choice and written questions, as many as you want.
Study sets in seconds
Turn your notes and files into a set with AI.
See your progress
Always know what you've learned and what's left.
Questions in this set (8)
What is design by contract?
an approach to designing software that they should define formal, precise, verifiable interface specifications for software components. it is a tool that prevents programming errors
Where do exceptions come form?
from violation of our assumption
Where can our assumptions be violated?
before/after we start processing, state of an object throughout execution
What's preconditions?
well-define conditions that need to be met before execution
What's postcondition?
well-defined conditions that need to be met after execution
What's invariants?
conditions that must always be met throughout the entire life cycle of the object
How are invariants usually implemented?
usually as functions and called often in pre/postconditions
What are the 3 general classifications of input data?