Java内部类继承问题的分析  

Problems of inheritance at Java inner class

在线阅读下载全文

作  者:王巍[1] 董科[1] 

机构地区:[1]杨凌职业技术学院信息工程学院,陕西杨凌712100

出  处:《信息技术》2014年第8期202-204,共3页Information Technology

摘  要:继承的使用简化了程序中的复杂问题,单继承增强了源代码的可重用性,易于程序的维护和修改,但是当程序使用多层继承时,由于Java内部类的机制问题,会遇到一些潜在的问题,继承层次越多,问题会越严重。分析了Java内部类的继承问题,此外,提出了一个用来检测Java内部类的继承问题的方法,并给出了相应的解决方案。Use of inheritance simplifies complex problem about program, single inheritance enllanees ttlereusability of codes and is liable to maintaining and amending. However, the mechanism of inner class inJava potentially reintroduces the problems encountered by multiple inheritance. When the depth of Javainner class is increased, the problem becomes severe. This paper analyzes the problems of inheritance atthe Java inner crass. In addition, the measures are proposed to evaluate the potential problem ofinheritance for Java inner class.

关 键 词:内部类 继承 循环继承 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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