Exploring accessibility and visibility relationships in java
Authors:
Open Access
- 30 June 2008
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGCSE Bulletin
- Vol. 40 (3) , 103-108
Abstract
Inheritance and polymorphism are important OOP topics in CS1 and CS2. While these concepts are generally straightforward, there are subtleties that may leave students confused. For example, accessibility of a field in an object is generally determined by the declaring type and access modifiers of the field, and the context in the executing program from which the field is referenced. The dynamic object viewers in jGRASP have been expanded to allow the user to: (1) change the declared type of the object reference to any compatible type and (2) change the accessibility context of the object reference. These options enable the user to explore accessibility and visibility relationships by experimenting with any object on the workbench or in the debugger. Symbols, color, and text are used in the viewer to indicate inheritance relationships, accessibility, and visibility of fields and methods. Initial classroom use has demonstrated the potential for these new viewer features as an aid to students who are learning about inheritance and polymorphism.Keywords
This publication has 11 references indexed in Scilit:
- Checklists for grading object-oriented CS1 programs2007
- Dynamic object viewers for data structures2007
- The quarks of object-oriented developmentCommunications of the ACM, 2006
- Teaching inheritance concepts with Java2006
- Novice Java programmers' conceptions of "object" and "class", and variation theory2005
- Cognitive activities of abstraction in object orientation: an empirical studyACM SIGCSE Bulletin, 2004
- Using an environment chain model to teach inheritance in C++2002
- Myths about object-orientation and its pedagogy2000
- On the notion of inheritanceACM Computing Surveys, 1996
- Explaining inheritance1996