title: Instantiate case class with values to be set for its members
body: <p>Consider this case class</p>
  
  <pre><code>case class sample(val s: String = { /*compiled code*/ })
  {
    val name:String = { /*compiled code*/ }
    val no:Int = { /*compiled code*/ }
  }
  </code></pre>
  
  <p>I need to create instance of this class with particular values set to name and no. 
  But I cannot use another class which extends this class. I have to pass the same class instance.</p>