I'm using some scala code taken from a Scala courers on coursera :
package src.functional.week4
abstract class Boolean {
def ifThenElse[T](t: => T, e: => T): T
def && (x: => Boolean): Boolean = ifThenElse(x, false)
}
The line def && (x: => Boolean): Boolean = ifThenElse(x, false) gives this compile time error :
type mismatch; found : scala.Boolean(false) required: src.functional.week4.Boolean
Here is the code snippet from the video :

Do I need to change the code in order for it to compile ?
When I create the new 'false' object using
object false extends Boolean {
def ifThenElse[T](t: => T, e: => t) = e
}
I receive the error :
Multiple markers at this line - identifier expected but 'false' found.
I am defining the object within the the same class as 'abstract class Boolean'. I am unable to create a new object of type 'false' as the Eclipse IDE does not allow this.