当前位置:编程学习 > JAVA >>

继承的一些东西,不是很了解,求肋

		public static class A extends Structure
{
public short year;            /**< 年*/
public short month;           /**< 月*/
public short day;             /**< 日*/
public short hour;            /**< 时*/
public short minute;          /**< 分*/
public short second;          /**< 秒*/
public static class ByReference extends A implements Structure.ByReference { }
public static class ByValue extends A implements Structure.ByValue{ }

}
继承 Java --------------------编程问答-------------------- 静态内部类
别把它当作内部类
它就是个普通类
只不过是在一个类中定义的罢啦! --------------------编程问答--------------------
public static class ByReference extends A implements Structure.ByReference { }     public static class ByValue extends A implements Structure.ByValue{ }  

这两句是什么意思呢? --------------------编程问答-------------------- 继承A并实现接口Structure.ByReference
补充:Java ,  Java相关
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,