class Person{
public void eat(Apple apple){
Apple peeled=apple.getPeeled();
System.out.println("Yummy");
}
}
class Peeler{
static Apple peel(Apple apple){
return apple;
}
}
class Apple{
Apple getPeeled(){return Peeler.peel(this);}
}
public class Test{
public static void main(String args[]){
new Person().eat(new Apple());
}
}
没怎么看懂,有大牛可以帮我详细详细详细解释一下吗?不胜感激!