摘要: 34.编写2个接口:InterfaceA和InterfaceB;在接口InterfaceA中有个方法void printCapitalLetter();在接口InterfaceB中有个方法void printLowercaseLetter();然 后写一个类Print实现接口InterfaceA和I 阅读全文
posted @ 2016-09-26 22:03 庚庚庚庚庚辰 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 3. 编写Java应用程序,定义Animal类,此类中有动物的属性:名称 name,腿的数量legs,统计动物的数量 count;方法:设置动物腿数量的方法 void setLegs(),获得腿数量的方法 getLegs(),设置动物名称的方法 setKind(),获得动物名称的方法 getKind 阅读全文
posted @ 2016-09-26 21:47 庚庚庚庚庚辰 阅读(132) 评论(0) 推荐(0) 编辑