You can use an abstract class when you need to encapsulate a basic set of functionality that derived classes can inherit or override when appropriate.
英
美
- 当需要封装一组派生类可在适当时候继承或重写的基本功能时,可以使用抽象类。