Chapter 4 Case Study: Interface Design Flashcards
Method
A function that is associated with an object and called using dot notation.
Loop
A part of a program that can run repeatedly.
Encapsulation
The process of transforming a sequence of statements into a function definition.
Generalization
The process of replacing something unnecessarily specific (like a number) with something appropriately general (like a variable or parameter).
Keyword Argument
An argument that includes the name of a the parameter as a “keyword”.
Interface
A description of how to use a function, including the name and descriptions of the arguments and return value.
Refactoring
The process of modifying a working program to improve function interfaces and other qualities of the code.
Development Plan
A process for writing programs.
Docstring
A string that appears at the top of a function definition to document the function’s interface.
Preconditon
A requirment that should be satisfied by the caller before a function starts.
Postcondition
A requirement that should be satisfied by the function before it ends.