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.

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