title: Property or Method?
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>When is it best to use a property or a method?</p>
  
  <p>I have a class which is a logger. When I create this class I pass in a file name.</p>
  
  <p>My file name for the log is fairly simple, basically it just gets the application path and then combines it with myapp.log.</p>
  
  <p>Now instead of having the log file name lines in my method I want to create a new method to get this.</p>
  
  <p>So my question is, since it's fairly simple, is creating a property a good idea instead of creating a method since there are no parameters.</p>
  
  <hr>
  
  <p><strong>Duplicate</strong> <a href="https://stackoverflow.com/questions/601621/properties-vs-methods">Properties vs Methods</a></p>