27 terms

AP Computer Science A: Program Analysis Vocabulary

Vocabulary summary for the Program Design and Analysis chapter of Barron's 2009 edition.
software development
writing a program
object-oriented program
uses interacting objects
program specification
description of a task
program design
a written plan, an overview of the soution
program implementation
the code
test data
input to test the program
program maintenance
keeping the program working and up to date
top-down development
implement main classes first, subsidiary classes later
independent class
doesn't use other classes of the program in its code
bottom-up development
implement lowest level, independent classes first
driver class
used to test other classes; contains main method
inheritance relationship
is-a relationship between classes
composition relationship
has-a relationship between classes
inheritance hierarchy
inheritance relationship shown in a tree-like diagram
UML diagram
graphical representation of relationship between classes
data structure
Java construct for storing a data field (e.g., array)
information hiding
using private to restrict access
stepwise refinement
breaking methods into smaller methods
procedural abstraction
using helper methods
stub method
dummy method called by another method being tested
fixing errors
robust program
screens out bad input
compile-time error
usually a syntax error; prevents program from compiling
syntax error
bad language usage (e.g., missing brace)
run-time error
occurs during execution (e.g., int division by o)
run-time error thrown by Java method
logic error
program runs but does the wrong thing.