4.1 - Objects Everywhere
scala is pure OO: every value is an obj, every operation is a method of obj.
scala.Int
scala.Boolean
maps to JVM standard primitive types.
Implement Boolean
withous primitive type in scala:
Then defin false
and true
as objects, give implementation for ifThenElse()
funciton:
object ...