Teaching by analogy

Author:
  • JMJohn Mason
    John Mason

Abstract
Many beginning programming students have difficulty mastering the C++/Java concept of the switch statement. This paper provides a classroom tested analogy that allows students to map a "real world" concept that they already understand to the switch statement, thus making comprehension much easier.