In such a case, you want the consuming code to create objects only from the derived classes.

 
  • 此时,您需要让使用代码仅从派生类创建对象。
今日热词
目录 附录 查词历史