Talk:Scala (programming language): Difference between revisions

Content deleted Content added
Line 325:
 
<ref>https://en.wikipedia.org/wiki/Scala_%28programming_language%29#Example_with_classes </ref>
 
: The reason they are there is to provide an immutable field. The way <code>x</code> and <code>y</code> are setup is to produce the same effect as the Scala class parameters of the same name.
 
== <code>import</code> in example ==