上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: package a; public class QiuHe { private int m; private int n; public int getM() { return m; } public void setM(int m) { this.m = m; } public int getN( 阅读全文
posted @ 2016-05-27 11:34 凌零聆 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: package a; public class SanWeiOuShu { public static void main(String[] args) { String str="123456789"; String a,b,c; int sum=0; for (int i = 1; i < 9; i+=2) ... 阅读全文
posted @ 2016-05-27 11:05 凌零聆 阅读(1016) 评论(0) 推荐(0) 编辑
摘要: 抽象方法:在类中没有方法体的方法,就是抽象方法。 抽象类:含有抽象方法的类就叫抽象类。 抽象类中的抽象方法必须被实现!如果一个子类没有实现父类中的抽象方法,则子类也成为了一个抽象类!抽象类中的普通方法,可以不必实现。1 用abstract关键字来修饰一个类时,这个类叫做抽象类;用abstract来修 阅读全文
posted @ 2016-05-27 10:24 凌零聆 阅读(258) 评论(0) 推荐(0) 编辑
摘要: package b; public interface ZuoBiao { double zuobiao(); } package b; public class Point implements ZuoBiao { double x; double y; double z; public doub 阅读全文
posted @ 2016-05-26 20:01 凌零聆 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: package b; public interface CanFly { public void fly(); } package b; public class FeiJi implements CanFly { @Override public void fly() { System.out.p 阅读全文
posted @ 2016-05-26 19:17 凌零聆 阅读(5225) 评论(0) 推荐(0) 编辑
摘要: package b; public interface Computer { int computer(int n,int m); } package b; public class Jia implements Computer { @Override public int computer(in 阅读全文
posted @ 2016-05-26 18:56 凌零聆 阅读(962) 评论(0) 推荐(0) 编辑
摘要: package a; public interface CanSwim { void swim(); } package a; public interface CanFly { void fly(); } package a; public abstract class ActionCharact 阅读全文
posted @ 2016-05-26 17:44 凌零聆 阅读(198) 评论(0) 推荐(0) 编辑
摘要: package a; public interface CentralPartyCommittee { void partyLeader(); } package a; public abstract class StateCouncil{ abstract void safetyInProduct 阅读全文
posted @ 2016-05-24 15:08 凌零聆 阅读(510) 评论(0) 推荐(0) 编辑
摘要: package a; public interface InterfaceA { int method(int n); } package a; public class ClassA implements InterfaceA { public int method(int n) { int su 阅读全文
posted @ 2016-05-24 14:48 凌零聆 阅读(4694) 评论(0) 推荐(0) 编辑
摘要: package lianxi; public interface InterfaceA { void printCapitalLetter(); } package lianxi; public interface InterfaceB { void printLowercaseLetter(); 阅读全文
posted @ 2016-05-24 14:26 凌零聆 阅读(2892) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页