Download Scala Tutorial (PDF Version) - Tutorials Point
Download Scala Tutorial (PDF Version) - Tutorials Point
Download Scala Tutorial (PDF Version) - Tutorials Point
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
}<br />
val point = new <strong>Point</strong>(10, 20)<br />
print<strong>Point</strong><br />
def print<strong>Point</strong>{<br />
println ("<strong>Point</strong> x location : " + point.x);<br />
println ("<strong>Point</strong> y location : " + point.y);<br />
}<br />
When the above code is compiled and executed, it produces the following result:<br />
C:/>scalac Test.scala<br />
C:/>scala Test<br />
<strong>Point</strong> x location : 10<br />
<strong>Point</strong> y location : 20<br />
C:/><br />
TUTORIALS POINT<br />
Simply Easy Learning