See: http://stackoverflow.com/questions/3075951/scala-importing-class
I have a file called CashFlow.scala
that I wish to use with another object Hello.scala
. Both are in the same directory:
class CashFlow(amt: Double, curr: String) {
def this(amt: Double) = this(amt, "GBP")
def doSomething {
println "do something"
}
}