programming_languages:scala

This is an old revision of the document!


Scala

Start

  • No primitive types, everything is an object
  • No semicolon
  • Object is a singleton
  • Methods can be defined private or protected. If no modifer is given, method is public.
  • No static methods
object HelloWorld {
  def main(args: Array[String]) {
    println("Hello, world!")
  }
}
  • programming_languages/scala.1444488333.txt.gz
  • Last modified: 2015/10/10 16:45
  • by phreazer