Making the abstract concrete in object-oriented programming through use of a serious game with narrative and visualization
DOI:
https://doi.org/10.5324/th4wh495Keywords:
Higher Education, Serious Game, Gamification, Visualization, Object Oriented Programming, Notional MachinesAbstract
Object-oriented programming (OOP) is central to computing curricula, but students have difficulty grasping its more abstract aspects. A key reason is that the runtime behavior of an OOP program is hidden: in a conventional development environment, students see code and console output, but not the objects, references, and state changes they are asked to reason about. This study examines a proof-of-concept serious game in which first-year students write Java code within a narrative, and in which the resulting objects, their properties, and the relationships between them are made directly observable. Rather than measuring learning gains, we ask how this observability shapes the way students reason about abstract OOP concepts. The prototype was evaluated with 23 participants -- four individual in-depth interviews in June 2023 and three focus groups with 19 participants in May 2024 -- and the material was analyzed thematically. Participants used the visual representation to connect the execution of a line of code with the creation of an object and with subsequent changes to its state, and the narrative supplied a domain vocabulary through which they discussed and reasoned about those operations. The findings suggest that making object creation, state, and relationships observable can reveal discrepancies in students' mental models that remain hidden in conventional programming environments.
Downloads
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Rolando Gonzalez, Bogdan Marculescu, Marcus Alexander Dahl, Omid Mirmotahari

This work is licensed under a Creative Commons Attribution 4.0 International License.