title: Scala Traits - how to implement method
body: <p>How to properly extend and implement method <code>sendEmail</code> from <code>Person</code> trait (interface) inside <code>Employee</code> object bellow in order for main to execute:</p>
  
  <pre><code>trait Person {
    var name:String
    var gender:Char
    def sendEmail(subject:String, body:String)
  
  }
  
  object Employee extends Person {
    def main(args: Array[String]): Unit = {
      println("Hello")
      sendEmail("a", "b")
  
      def sendEmail(subject:String, body:String): Unit = {
        println("subject" + body)
      }
  
    }
  }
  </code></pre>