title: Where should the line between property and method be?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/601621/properties-vs-methods">Properties vs Methods</a>  </p>
  </blockquote>
  
  
  
  <p>For many situations it is obvious whether something should be a property or a method however there are items that might be considered ambiguous.</p>
  
  <p><strong>Obvious Properties:</strong></p>
  
  <ul>
  <li>"name" </li>
  <li>"length"</li>
  </ul>
  
  <p><strong>Obvious Methods:</strong></p>
  
  <ul>
  <li>"SendMessage"</li>
  <li>"Print"</li>
  </ul>
  
  <p><strong>Ambiguous:</strong> </p>
  
  <ul>
  <li>"Valid" / "IsValid" / "Validate"</li>
  <li>"InBounds" / "IsInBounds" / "CheckBounds"</li>
  <li>"AverageChildValue" / "CalcAverageChildValue"</li>
  <li>"ColorSaturation" / "SetColorSaturation"</li>
  </ul>
  
  <p>I suppose I would lean towards methods for the ambiguous, but does anyone know of a rule or convention that helps decide this? E.g. should all properties be O(1)? Should a property not be able to change other data (ColorSaturation might change R,G,B values)? Should it not be a property if there is calculation or aggregation?</p>
  
  <p>Just from an academic perspective, (and not because I think it's a good idea) is there a reason not to go crazy with properties and just make everything that is an interrogation of the class without taking an argument, and everything that can be changed about the class with a single argument and cant fail, a property?</p>