摘要:
1 class A { 2 double f(double x,double y) { 3 return x+y; 4 } 5 static int g(int n) { 6 return n*n; 7 } 8 } 9 class B extends A { 10 double f(double x 阅读全文
摘要:
1 interface Achievement { 2 public abstract float average(); 3 } 4 class Person { 5 String name; 6 int age; 7 public Person(String newName,int newAge) 阅读全文
摘要:
1 abstract class SIM { 2 public abstract void setNumber(String n); 3 public abstract String giveNumber(); 4 public abstract String giveCorpName(); 5 } 阅读全文