开发者

can I have an abstract class inheriting from another abstract class ? (java) [closed]

开发者_如何学编程 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.
public abstract class Two extends One
{
}

Class One is defined as

public abstract class One
{
} 


Yes, and you cannot instantiate it either, of course.


Yes, you can.

If you extend a class with an abstract class and do not define or provide the implementation for the base class abstract methods then the child class extending it would automatically become abstract.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜