Program Design And Analysis Flashcards
(29 cards)
Object oriented program
Uses interacting objects
Program specification
Description of a task
Program design
A written plan, an overview of the solution
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 text 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
Tree-like representation of relationship between classes
Data structure
Java construct for storing a data field (ex. Array)
Encapsulation
Combining data fields and methods in a class
Information hiding
Using private to restrict access
Stepwise refinement
Breaking methods into smaller methods
Procedural abstraction
Using helper methods
Algorithm
Step by step process that solves a problem
Stub method
Dummy method called by another method being tested
Debugging
Fixing errors
Robust program
Screens out bad input
Compile time error
Usually a syntax error; prevents program from compiling