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 7763727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:43:55+00:00 2026-06-01T14:43:55+00:00

In many books or articles u may see such a definition about interface :

  • 0

In many books or articles u may see such a definition about interface :an interface is a “contract” or an agreement between the consumer (caller) and the provider (callee).but Unfortunately there is no Clear example that describes what is caller class or what is callee class and show how they could communicate with each other through interface.

from this point of view I am confused about The Terms caller(consumer) and callee (provider), I just know that we define an interface and a class Implements that Interface . is the implementor class considerd as caller if so what about callee , how callee uses the interface , could any one describe this terms clarely and give a clear example about that .

any help would be highly appreciated .

  • 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-01T14:43:56+00:00Added an answer on June 1, 2026 at 2:43 pm

    Who implements an interface is a callee, cause he provides an implementation of interface. Consumer is tat one who uses an object of the callee, so they call it caller.

    EDIT

    pulbic interface IPlugin
    {
        double Calculate(double d1, double d2);
    }
    
    public class WebConnectPlugin: IPlugin
    {
       public double Calculate(double d1, double d2){ // some code}
    }
    
    public class DBConnectPlugin: IPlugin
    {
       public double Calculate(double d1, double d2){ // some code}
    }
    

    and somewhere in the code:

    public class CallerIDE
    {
       IPlugin plugin= null; 
    
    
       public void DoSomething()
       {
          contractor = GetPlugin();
          double value = contractor.Calculate(10.3456, -3.546456);
       }
    
       private IPlugin GetPlugin()
       {
          return new WebConnectPlugin();
    
          return new DBConnectPlugin(); //based on some logic
       }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Many times when I read books related to CSS I see things like this
While many ask questions about where to find good books or tutorials, I'd like
I'm reading about threads and in many books is said that Java support threads
I try to find articles, books or anything about programming without jumps (x86 arch).
Many books/articles I've read on this topic, as well as a small program I
I read books, articles, tutorials, and all that kind of stuff about the n-tier
I have the following 3 classes Book Product SpecialOptions There are many Books, and
Each book can have many authors. And each author can author many books. class
It is taught in every computer science class and written in many books that
Are Java final methods automatically inlined? Many books says yes many books says no!!!

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.