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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:58:41+00:00 2026-05-31T17:58:41+00:00

Possible Duplicate: Interfaces: Why can't I seem to grasp them? I have seen many

  • 0

Possible Duplicate:
Interfaces: Why can't I seem to grasp them?

I have seen many different types of answers on what is interface (techical, c#) and why is it there.etc..

Today i want to ask you guys question whether below my understanding is correct ?

You will implement an Interface on class A when you want your consumer classes (say classes B,C,D,E) to use class A for a reason (and that reason is Interface name).

Lets say class A has functionality to can Delete Employee work history Data and as well it can delete Employee skillset data. This class A has non null property called Employee_Id

Now you will implement 2 interfaces IDeleteWorkHistroy and IDeleteSkillSet and implement them in class A

All the consumer classes B,C,D… will talk to your class only through these two interfaces and they wont directly use instance of class A anywhere in the application

e.g.
in class B wants to delete only employee work history:
IDeleteWorkhistory EmpWH = new class A(emp_id);
and everywhere else in class B you will use EmpWH and nothing else of class A.

Basically consumers of your class will use only that thing which he needs or other way consumer will talk to that interface which is needed by him.

In other words (keyboard is interface of your Computer) if you want to talk to your computer you wont need a bit sequencer where you you pass bit by bit information to CPU using interrupts..(though , ideally , you can do it).
You will talk to your machine using proper interface only.

So any class that you are writing , write proper interfaces so that the consumers will talk to your class in standard way.

Please let me know if my understanding is correct or needs modifications ?

  • 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-05-31T17:58:42+00:00Added an answer on May 31, 2026 at 5:58 pm

    I think your understanding is right. I generally see interfaces as markers of a functionality. A class may have more than one functionality, and when you inherit interfaces, it is like saying I am able to do this. Some of the consumers, may not need all of the functionality or may not need the same functionality with another one.

    On the other hand, this is not the only use of interfaces. Sometimes you use them for somehow implementing multiple inheritance, sometimes for IOC purposes. But in your context, I think you are right.

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

Sidebar

Related Questions

Possible Duplicate: Why can't I have protected interface members? as title, in C#. Is
Possible Duplicate: Java Interfaces? What is the use of interface in java? Is interface
Possible Duplicate: Protected in Interfaces The following code snippet shows that an interface in
Possible Duplicate: WHY an Anonymous class in Java can't implement multiple interfaces directly? Simply
Possible Duplicates: interface and abstract class. Abstract classes vs Interfaces Can anyone tell me
Possible Duplicate: How can i fix my scrollView dynamically when i have more than
Possible Duplicate: Datatemplate inheritance I have several data types that are not subclasses, nor
Possible Duplicate: How can I have references between two classes in Objective-C? Objective-C #import
Possible Duplicate: Why does Eclipse complain about @Override on interface methods? I have some
Possible Duplicate: Why are interfaces preferred to abstract classes? Abstract class and Interface class?

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.