摘要: 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 阅读全文
posted @ 2020-12-13 11:01 李家宇 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 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) 阅读全文
posted @ 2020-12-13 10:54 李家宇 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1 abstract class SIM { 2 public abstract void setNumber(String n); 3 public abstract String giveNumber(); 4 public abstract String giveCorpName(); 5 } 阅读全文
posted @ 2020-12-13 09:20 李家宇 阅读(117) 评论(0) 推荐(0) 编辑