In Scala how do you write a init function?

Viewed 11164

For example, in Ruby I can write

def initialize(price)
    @Current_price = price
end
1 Answers
Related