Interface pattern by Mark Grand Design Pattern

Mark Grand Design Pattern

たとえばインタフェースパターンは次のように表現されています。

Keep a class that uses data and services provided by instances of other classes independent of those classes by having it access those instances through an interface.

翻訳例)
 他のクラス(B)のインスタンスにより提供されるデータとサービスを使うクラス(A)がある。Aがインタフェースを通してBのインスタンスへアクセスすることにより、AをBから独立した状態とする。

同じカテゴリの記事: Java