Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
カップリングを減らすために、インターフェイスを戻り値の型として使用することは一般的に良い考えであると読んだことがあります。インターフェイスを戻り値の型として使用するのが悪い考えはいつですか
インターフェイスを戻り値の型として使用しない一般的なケースが 2 つあります。
インターフェイスを戻り値の型として使用できる場合は常に、それを使用することをお勧めします。