首页> 外文期刊>SIGCSE bulletin >Exploring Accessibility and Visibility Relationships in Java
【24h】

Exploring Accessibility and Visibility Relationships in Java

机译:探索Java中的可访问性和可见性关系

获取原文
获取原文并翻译 | 示例
           

摘要

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.
机译:继承和多态性是CS1和CS2中重要的OOP主题。这些概念通常简单明了,但有些细微之处可能会使学生感到困惑。例如,对象中字段的可访问性通常由字段的声明类型和访问修饰符,以及从中引用该字段的执行程序中的上下文确定。 jGRASP中的动态对象查看器已经扩展为允许用户:(1)将对象引用的声明类型更改为任何兼容类型,以及(2)更改对象引用的可访问性上下文。这些选项使用户可以通过试验工作台或调试器中的任何对象来探索可访问性和可见性关系。查看器中使用符号,颜色和文本表示继承关系,可访问性以及字段和方法的可见性。最初的课堂使用证明了这些新查看器功能的潜力,可以帮助正在学习继承和多态性的学生。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号