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

  • Home
  • SEARCH
  • 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 8954041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:13:39+00:00 2026-06-15T14:13:39+00:00

I believe we invent things for some reasons: OOP came because procedural programming didn’t

  • 0

I believe we invent things for some reasons: OOP came because procedural programming didn’t meet our needs; The same goes for the Interface, because other OOP features like Abstract didn’t meet our needs.

There are plenty of articles and guides written about what an Interface IS, CAN DO and HOW TO USE IT, however, I’m wondering what the actual philosophy behind the of creation of Interface is? Why we need to have Interface?

  • 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-15T14:13:40+00:00Added an answer on June 15, 2026 at 2:13 pm

    Conceptually, an interface is a contract. It’s a way of saying that anything implementing this interface is capable of doing these set of things.

    Different languages have different things that interfaces can define, and different ways of defining them, but that concept remains.

    Using interfaces allows you to not care how some particular task is completed; it allows you to just ensure that it is completed.

    By allowing implementations to differ, and allowing the code to define just the smallest subset of what it needs, it allows you to generalize your code.

    Perhaps you want to write a method to write a sequence of numbers on the screen. You don’t want to go around writing methods for doing that for an array, a set, a tree, on any of the (many) other commonly used data structures. You don’t need to care whether you’re dealing with an array or a linked list, you just need some way of getting a sequence of items. Interfaces allow you to define just the minimal set of what you need, lets say a getNextItem method, and then if all of those data structures implement that method and interface they can use the one generalized method. That’s much easier than writing a separate method for each type of data structure you want to use. (This isn’t the only use of interface, just a common one.)

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

Sidebar

Related Questions

I believe I've looked everywhere possible and already feel to silly because I spent
I believe that readability and the KISS principle are the most important things in
My android service needs to have a background thread but I believe I can't
I believe I've set this up correctly. Can somebody see anything wrong with this
I believe I am using the correct queryString params for jdbc connection jdbc:mysql://localhost:3306/databasename?useUnicode=true&characterEncoding=utf8&noAccessToProcedureBodies=true My
I believe what I am trying to accomplish should be a fairly common task,
I believe that the rallytagpicker is definitely a useful component. However, I do not
I believe I am having a security problem related to using the embed tag
I believe Wordpress stores multiple entries of posts as revisions but I think thats
I believe this is a fairly simple question but it is something I am

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.