开发者

What does "-" means in this declaration

开发者 https://www.devze.com 2023-03-09 08:59 出处:网络
I was looking at this source code and in the attributes declaration there is a minus sign. - s : String

I was looking at this source code and in the attributes declaration there is a minus sign.

- s : String 

Or in a met开发者_开发百科hod declaration:

- x( aPoint : Point ):Integer {
     ad : Double = aPoint.getX()
     ad.intValue()
  }

What does it stands for?


It makes the definition private, according to the access modifiers list.

http://code.google.com/p/ryz/wiki/RyzLanguageReference#Methods


means s or x aren't static members, if you put + that means they are static ones


From here, minus signs denote instance methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消