Skip to content

firdau.si

Wisdom is the lost property of the Believer

Tag Archives: scala

Representation of class in Scala

Seems very simple but can be source of frustration. So, how to represent class in Scala? In Java, you refer to a class by adding .class at the end of the class name. In Scala, you get the equivalent of that by using classOf[]. An example for referring String class is as follow: You can […]

Posted bynandaJanuary 27, 2011Posted inscalaTags: scala, scala type systemLeave a comment on Representation of class in Scala
firdau.si, Proudly powered by WordPress.
  • eclipse
  • java
  • apple
  • fun