Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:29:19+00:00 2026-06-18T01:29:19+00:00

In a SO question on interface programming a commenter says – Most answers to

  • 0

In a SO question on interface programming a commenter says –

Most answers to this question have the common misconception that
“programming to an interface” means use the interface language
construct; which is totally wrong! This is the first answer I’ve seen
that correctly illustrates that “programming to an interface” means:
don’t unnecessarily bind your ‘client code’ to concrete/specific
subclass implementations because if you later decide to change it use
a different implementation, you have a lot more work undoing all the
unnecessary bindings. I.e. program to/bind to things without
implementation details. E.g. Abstract base classes.;)

Can some please expand on this point, preferably in relation to c#.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:29:20+00:00Added an answer on June 18, 2026 at 1:29 am

    My interpretation is that the answer is just expanding the notion of “interface” to mean binding to any set of properties and methods whether a “pure” interface (i.e. an interface in C#) or binding to a particular implementation. The answer’s point was that you could consider a class an “interface” by itself, and so you should program to the lowest base class that is necessary for your usage (a generic List contract versus a more specific ArrayList contract is that example).

    You see this a lot in System.IO classes that bind to an abstract TextReader class versus an (non-existent) ITextReader interface.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I have a Java application that many programming clients interface with. Recently, a
This is not an Eclipse-programming question, but rather a question about the Eclipse user-interface
This question concerns the reflection mechanisms of the java programming language. I have an
I have this question for my programming class which I have been struggling to
Hi I am reading TLPI (The Linux Programming Interface), I have a question about
I have to interface with a slightly archaic system that doesn't use webservices. In
I have an interesting question about interface builder and ARC. I am building a
Simple question: Is there a class or interface that encapulates the getting of a
following on from this question (Developing to an interface with TDD), I'm still having
my question is rather simple, if you have an pure virtual class (interface) but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.