java中的“@Override”是什么意思?
public class Animal {
public void eat() { System.out.println("I eat like a generic Animal."); }
}
public class Wolf extends Animal {
@Override
public void eat() { System.out.println("I eat like a wolf!"); }
}
实际上是否有一些功能,或者只是有点评论?@Override