Do not confuse optional containment with the need for inheritance. Modeling optional containment with inheritance will lead to a proliferation of classes.

  • 不要把可选包含同对继承的需要相混淆。把可选包含建模成继承会带来泛滥成灾的类。
目录 查词历史