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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:15:31+00:00 2026-05-30T08:15:31+00:00

When I googled to find the related topics about interface, I found this from

  • 0

When I googled to find the related topics about interface, I found this from MSDN website:

For example, an interface might declare a property that has a get accessor. The class that implements the interface can declare the same property with both a get and set accessor.
from MSDN

Now I have a doubt. When we specifically mentioned that the property should be read only(only ‘get’ accessor in the interface) why is it allowed to implement ‘set’ accessor also?

  • 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-30T08:15:33+00:00Added an answer on May 30, 2026 at 8:15 am

    Now I have a doubt. When we specifically mentioned that the property should be read only(only ‘get’ accessor in the interface) why is it allowed to implement ‘set’ accessor also?

    There’s a difference – when you use an interface, you’re not “specifying that the property should be read only”, but rather specifying that the contract defines a “readable property” of that specific name and type. Basically, the interface defines the minimum requirements for a contract, not the absolute requirements.

    If you cast the object to the specific interface, the property setter will not be available. It’s really no different than having extra properties or methods on the object that aren’t available via the interface.

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

Sidebar

Related Questions

I googled this a little but couldn't find a good result. Right now I'm
I googled for this for a while but can't seem to find it and
Googled for this to no avail. Didn't find anything in the API either. I
I tried to find a related question but all previous questions are about profilers
I have tried looking at the related links and googled this, but I haven't
I've found this question asked several times when I've Googled for it, but the
I already googled around to find a solution for my need, with no success.
I googled around and coulnd't really find an answer. How do I open an
Googled everything, but can't find solution for my problem. When i'm trying to deploy
I've googled around and can't find a clear answer. I simply want to start

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.