title: How do I override the setter method of a property in C#?
body: <p>I have a class with a subclass. The superclass has a <code>Position</code> property. The subclass must perform an additional operation when the <code>Position</code> property is changed, so I am attempting to override the setter method and call the superclass' setter.</p>
  
  <p>I think I've got the superclass setter calling part down, but I can't figure out how the overriding syntax works here.</p>
  
  <p>Here is my best attempt:
  <img src="https://i.stack.imgur.com/RJQB0.png" alt="code"></p>
  
  <p>The getter is there just for proof of concept -- suppose I wanted to override that too?</p>
  
  <p>The getter and setter give me errors of this form:</p>
  
  <blockquote>
    <p>cannot override inherited member 'superClassName.Position.[gs]et' because it is not marked virtual, abstract, or override</p>
  </blockquote>
  
  <p>Here's a screencap of the errors too for good measure:
  <img src="https://i.stack.imgur.com/eZ82X.png" alt="errors"></p>
  
  <p>I also tried using the override keyword in front of the <code>set</code>. Removing the superfluous getter has no effect.</p>
  
  <p>What is the correct syntax?</p>