Once a class has defined its interface, all interactions with objects of that class should be through that interface, even when those objects are part of a derived object.

 
  • 一旦类定义了自己的接口,与该类对象的所有交互都应该通过该接口,即使对象是派生类对象的一部分也不例外。
今日热词
目录 附录 查词历史