摘要:
1、多态 thinking in java3中的多态 People are often confused by other, non-object-oriented features of Java, like method overloading, which are sometimes pres 阅读全文
摘要:
package LESSON6; //形状类 class Shape{ public final double PI=3.14; public double s;//面积 public double c;//周长 public Shape(double l,double h){ this.s=l*h; this.c=2*(l+h);... 阅读全文
摘要:
package EXERCISE; public class Change { //变量互换。使用异或运算,不借助第三变量 public static void main(String[] args) { int a=2;//10 int b=3;//11 a=a^b;//01=10^11 b=a^b;//10=01... 阅读全文