title: Dot operator with string instead of member in Scala
body: <p>I have a case class as:</p>
  
  <pre><code>case class abc (startDate:DateTime, endDate:DateTime)
  </code></pre>
  
  <p>In a different <code>object</code> that can access this <code>case class</code>, instead of accessing <code>abc.startDate or abc.endDate</code>,
  I would like to have a string that tells me whether it is start or end Date. So,</p>
  
  <pre><code>val decideStartOrEnd:String = "startDate"
  </code></pre>
  
  <p>Now I would like to get <code>abc.startDate</code> using this string variable <code>decideStartOrEnd</code>.</p>
  
  <p>Any help is appreciated.
  Thanks in advance.</p>