Java多态性机制应用研究  被引量:5

Application Research on Java Polymorphism Mechanism

在线阅读下载全文

作  者:葛萌[1] 张琳娜 陈伟[1] 

机构地区:[1]咸阳师范学院信息工程学院,陕西咸阳712000 [2]礼泉实验中学,陕西咸阳713200

出  处:《攀枝花学院学报》2016年第2期25-28,共4页Journal of Panzhihua University

摘  要:从方法重载、覆盖以及对象类型转换三个方面对Java语言的多态性进行了全面地分析。通过实例代码详细分析了方法覆盖的注意事项和上转型对象的特性,说明了多态性在代码设计时的应用。旨在希望Java程序设计人员能更好地利用多态性,开发高效、灵活、健壮的Java程序。This paper makes a comprehensive analysis to the polymorphism of Java language from the three perspectives:method overloading,overriding andobject typeconversion.Through the example code analysis,it analyzes in detail about the matters needs attention in method overriding,introduces the characteristics of transition objects and illustrates the applicationof polymorphism incode design.Hopefully,Java programmer can make better use of polymorphism to design the efficient,flexible androbust Java application.

关 键 词:多态性 方法重载 覆盖 对象类型转换 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象