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

38. (C) The draw method is polymorphic, which means that it is a superclass method that is overridden in at least one of its subclasses. During run time, there is dynamic binding between the calling object and the method, that is, the actual instance is bound to its particular overridden method. In the drawLetters method, the correct version of draw is called during each iteration of the for loop, and a banner with the appropriate letters is drawn.


































































































   1263   1264   1265   1266   1267