The dependency of one class to another one should depend on the smallest possible interface.

  • 客户端不应该依赖于自己不用的方法。
目录 查词历史