Page 1314 - AP Computer Science A, 7th edition
P. 1314
16. (A) When p.act() is called, the act method of Singer is executed. This is an example of polymorphism. The first line prints rise. Then super.act() goes to the act method of Performer, t he s uperc las s . T his print s bow, t hen c alls perform(). Again, using polymorphism, the perform method in Singer is called, which prints aria. Now, completing the act method of Singer, encore is printed. The result?
rise bow aria encore