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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:35:20+00:00 2026-06-17T09:35:20+00:00

Interface is a contract between client and server and it is necessary for a

  • 0

Interface is a contract between client and server and it is necessary for a server to define or implement methods declared in interface. This is definition of internal and I believe that it means Interface should be public only, but while creating Interface when I use internal keyword before interface it works fine and doesn’t give me any compile time error, but I didn’t understand why.

Edit : Even if we can declare interface as internal it is necessary for a class method implementing interface member to be public. Why this?

  • 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-17T09:35:20+00:00Added an answer on June 17, 2026 at 9:35 am

    The internal keyword means that the class or interface can only be used by other classes within the same assembly.

    http://msdn.microsoft.com/en-us/library/7c5ka91b(VS.80).aspx

    An interface is not necessarily a contract between two clients or servers, but rather it’s a promise that an object will implement certain methods or properties.

    http://msdn.microsoft.com/en-us/library/87d83y5b(v=VS.71).aspx

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

Sidebar

Related Questions

Why would I want to define a C++ interface that contains private methods? Even
I have a service contract interface that looks like this: [ServiceKnownType(typeof(GeometricModelDescriptor))] [ServiceKnownType(typeof(TemplateModelDescriptor))] [ServiceContract] public
I read some points about interface: Interface is the definition of contract that a
Say I have the following interface that I want to share between my server
why is it recommended to define service contract as an interface. Any specific advantages
This question was asked at interview. Say I have a contract. [ServiceContract] public interface
Update 2011-Jan-06: Believe it or not, I went ahead and incorporated this interface into
I'm developing an SPI and would like to define a Reportable interface such that
My Service Contract [ServiceContract] public interface ITsdxService { [OperationContract] [WebGet(UriTemplate=/GetTestCostCentre)] CostCentre GetTestCostCentre(); [OperationContract] [WebInvoke(UriTemplate=/SetCostCentre,
I have a interface as follows: namespace Contract { [InheritedExport(typeof(ITransform))] public interface ITransform {

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.