Exemple #1
0
 // 实现Person接口的useAxe方法
 public void useAxe() {
   // 调用axe的chop()方法,
   // 表明Person对象依赖于axe对象
   System.out.println(axe.chop());
   System.out.println("age属性值:" + age);
 }