A framework for teaching polymorphism using game programming

  • Authors:
  • Tarsem S. Purewal, Jr.;Chris Bennett

  • Affiliations:
  • University of Georgia, Athens, GA;University of Georgia, Athens, GA

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

We describe a general framework that allows a computer science instructor to design programming projects that involve and motivate the effective use of polymorphism. The framework is interesting because it lends itself to the design of a short, flexible game programming project that typically involves the use of multiple classes and class hierarchies. We also give two examples of projects that have been assigned in a second semester computer programming course that utilize this framework. An advantage of these types of projects is that they are open-ended, allowing particularly motivated students to express their skill and creativity. In our experience, the quality of student work on these projects reflects improved student motivation as well as a better understanding of the topic when compared to traditional polymorphism assignments. Although our description of this framework is specific to Java, we feel that it can be easily modified to work in any programming language that supports the object-oriented paradigm.