在计算包的传出耦合值时,我们是否计算依赖接口

Do we count depending interfaces while calculating Efferent Coupling value for a package

我们是否应该在计算包的传出耦合指标时计算接口

以下维基百科页面:https://en.m.wikipedia.org/wiki/Efferent_coupling 将传出耦合定义为:

[传出耦合] 测量 class 知道的数据类型的数量。这包括继承、接口实现、参数类型、变量类型和异常。

所以是的,如果你的 class 实现了一个接口,你应该算那个接口。