// AllTheColorsOfTheRainbow ... c2x8.scala // chapter 2, ex 8 package x; class AllTheColorsOfTheRainbow { var anIntegerRepresentingColors : Int = _ ; def changeTheHueOfTheColor ( newHue : Int ) = anIntegerRepresentingColors = newHue; }; object c2x8 { def main ( args : Array[String] ) = { var atcotr = new AllTheColorsOfTheRainbow; atcotr.changeTheHueOfTheColor( 10 ); } }