摘要:
1 interface Playable { 2 void play(); 3 } 4 interface Bounceable { 5 void play(); 6 } 7 interface Rollable extends Playable, Bounceable { 8 Ball ball = new Ball(“PingPang”); 9 }10 class Ball implements Rollable {11 private String name;12 public String getName() {13 return name;14 }15 public Ball(St. 阅读全文
摘要:
阅读全文