Even thought Scala is now among the trendy programming languages, it still misses a lot before it is considered as one of the major players. Most Scala programmers are they who are not satisfied with Java, so it’s natural that most of them were before programming with Java. One of the things Java programmers miss […]
Category 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 […]