//********************Fruit.java**********************//
public interface Fruit{
void plant();
void grow();
void harvest();
int getNumber();
}
//********************Apple.java**********************//
class Apple implements Fruit
{
public Apple(){}
public Apple(int num){
number = num;
}
public void plant(){
System.out.println("苹果已种植!");
}
public void grow(){
System.out.println("苹果正在成长!");
}
public void harvest(){
System.out.println("苹果已经收获!");
}
public void setTreeAge(int treeAge){
this.treeAge = treeAge;
}
public int getTreeAge(){
return treeAge;
}
public void setNumber(int num){<