title: Is there any way to extend an object?
body: <p>In scala, we cannot extend <code>object</code>:</p>
  
  <pre><code>object X 
  object Y extends X
  </code></pre>
  
  <p>gives an error <code>error: not found: type X</code></p>
  
  <p>In my case someone has defined some functionality in an object and I need to extend it (basically add another method). What would be the easiest way to extend this object? </p>