Page 553 - AP Computer Science A, 7th edition
P. 553

then do a sequential search on the name field of the
records.
(E) Use mergesort to sort the records alphabetically by name;
then do a binary search on the name field of the records.
Use the following information for Questions 37 and 38.
Here is a diagram that shows the relationship between some of the classes that will be used in a program to draw a banner with block letters.
 The diagram shows that the Banner class uses BlockLetter objects, and that the BlockLetter class has 26 subclasses, representing block letters from A to Z.
The BlockLetter class has an abstract draw method public abstract void draw();
Each of the subclasses shown implements the draw method in a unique way to draw its particular letter. The Banner class


























































































   551   552   553   554   555