title: found: Unit required: Int - How to correct this?
body: <pre><code>scala&gt; class Rectangle (Length: Int, Width: Int) {; def getLlength (): Int = println (Length); def getWidth ():Int = println (Width); }
  &lt;console&gt;:11: error: type mismatch;
   found   : Unit
   required: Int
         class Rectangle (Length: Int, Width: Int) {; def getLlength (): Int = println (Length:Int); def getWidth ():Int = println (Width:Int); }
                                                                                       ^
  &lt;console&gt;:11: error: type mismatch;
   found   : Unit
   required: Int
         class Rectangle (Length: Int, Width: Int) {; def getLlength (): Int = println (Length:Int); def getWidth ():Int = println (Width:Int); }
                                                                                                                                   ^
  </code></pre>