开发者

What does "-" means in this declaration

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜