可能重复:
When to use an interface instead of an abstract class and vice versa?
Difference between Interface, abstract class, sealed class, static class and partial class in C#?抽象类和接口有什么区别?你想什么时候使用它们?
public class Guru{
public Enemy(int x, int y, int health, int attack, ...) {
...
}
...
}
public class UserDefinedClass extends Enemy {
...
}
欢迎来到StackOverflow,但此问题已被提问(和回答)之前(请参阅“相关”边栏) –