Hi all,
This is what the error I got when I wrote the following code in SCALA.
scala> class Wont{
     | private var f=0;
     | def f=1;
     | }
<console>:6: error: method f is defined twice
       def f=1;
ie., it is treating a feild also a method.
Any pointers ???Why such behavior.
Thanks,
RajkumarGoel


      Own a website.Get an unlimited package.Pay next to nothing.*Go to 
http://in.business.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to