The first principle is: "Program to an interface, not an implementation."
第一条是:“面向接口编程,而非面向实现编程”。
This is not a requirement: It is an implementation decision.
这并不是一项需求:它只是一项实现决策。
It's not just a bunch of specs, but an actual (single) implementation.
它不仅仅是一套规范,还是一个实际(单一)实现。
However, the names are not necessarily predictable and should be considered an implementation detail.
不过匿名类的名称却无法预料,因此我们只需要考虑其实现细节。
However, the names are not necessarily predictable and should be considered an implementation detail.
不过匿名类的名称却无法预料,因此我们只需要考虑其实现细节。
应用推荐