About   Slides   Home  

Managed Chaos
Naresh Jain's Random Thoughts on Software Development and Adventure Sports
RSS Feed
Recent Thoughts
Recent Comments

Advantages of Programming to Interface over an Implementation

  • Clients remained decoupled and unaware of specific class they are using, as far as the underlying class adheres to the defined interface. 
  • The client does not need to know with which concrete class its interacting.
  • Depending on the context, different implementation classes can be polymorphically provided without having to change client code. Makes it easy for the system to evolve.
  • During development even though the concrete class is not available, the client class can be developed. Helps parallelize work.

    Licensed under
Creative Commons License