What do the icons for methods in Eclipse mean? [duplicate]

Deadly 提交于 2019-12-02 20:02:20

Green circle indicates a public method

Red square indicates a private method

Yellow diamond indicates a protected method

Blue triangle indicates default (package visible) method

This page gives an overview of all the icons used in Eclipse JDT. This page explains what the different access levels mean in Java terms, in case you aren't familiar with that.

Methods with the red square are private and the ones with the green circle are public.

http://download.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html

green circle - Usually a public method. red square - private method. yellow - protected

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!