java - What are those different color symbols when we mouseover on methods in eclipse? -
suppose have method returning object. so, when hover on method used in other class, eclipse show popup description method signature , method return.
but, question there little symbol ahead of being return. on different occasion got different shape , color symbol.
i have screen shots of that:
1) green circle shape symbol

2) red square shape symbol

3) yellow diamond shape symbol

so,
- what significance of little symbol?
- why there different color , shape different different methods?
- does symbol give idea method?
the symbols next methods refer access modifiers
what significance of little symbol?
green circle public
red square means private
yellow diamond protected
blue triangle means default(package) accessdoes symbol give idea method?
yes, tells can accessed from. more on access modifiers: http://docs.oracle.com/javase/tutorial/java/javaoo/accesscontrol.html
Comments
Post a Comment