Abstract class with all concrete methods

后端 未结 9 1324
感情败类
感情败类 2020-12-08 21:49

Are there some practical programming situations for someone to declare a class abstract when all the methods in it are concrete?

9条回答
  •  无人及你
    2020-12-08 22:20

    An abstract class is a class that is declared abstract - it may or may not include abstract methods. They cannot be instantiated so if you have an abstract class with concrete methods then it can be subclassed and the subclass can then be instantiated.

提交回复
热议问题