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.

  • 当需要封装一组派生类可在适当时候继承或重写的基本功能时,可以使用抽象类。
目录 查词历史