ABSTRACT

In conversations, several computer science teachers noted they became teachers, at least in part, because they wanted to act; they wanted an outlet for some form of career involving acting. This chapter presents two examples provide some ideas to introduce theatrical elements into classes that are either lecture- or discussion-based: the A Destructive Binary Search and the "Do Re Mi". To organize this within a simple object-oriented program, one might define a class for each tone and an object for each note. This yields the following Java declarations. While this gives the appropriate objects, interactions with the class discover that these declarations would not generate sound, leading to the use of a "sing" method in a program segment. Additional design issues might involve the number of objects required for each class and whether these classes might inherit properties from a super "Note" class.