Quick Index
Steps
- Take a shot at writing the program after viewing the problem statement
- When desired, look at the hints and try to write program again
- When desired, look at the solution
Problem Statement
Requirements
- Write a class named 'QueryArray' that enhances a fixed array
- Write several specified methods (see below)
- Write as pseudocode
Notes
- Note that this "wrapper" can also called a "decorator pattern"
- This means that our object (QueryArray) wraps a fixed array
- QueryArray has an instance variable that is a fixed array (it "wraps" and "decorates" that ivar)
- What we are doing is converting our previous work (stand-alone functions) into oo (an object)
Problems
The drill problems can be found here...
Hints
Solution