Public
KK: []
DJ: []
a.
1. 公众的[Z]
2. 公共的,公用的[Z]
You mustn't do that in a public place.
你不可在公共场所做那事。
3. 政府的,公务的[Z]
4. 公然的;众所周知的
They made the secret public.
他们公开了这个秘密。
n.
1. 公众,民众[the S][G]
The public was provoked to anger.
公众被激怒了。
The museum is open to the public.
这个博物馆对大众开放。
2. (某方面的)大众,群众;...界[S][G]
public在程序语言中基本都表示全局变量或者全局函数,他的本意是“公共的”的意思,他表示某个变量或者函数是全局函数,例如:public int a 表示a这个整型变量是全局变量,再例如,声明一个全局函数:public function checked()
........
end function
表示checked这个函数是全局函数
在某些方法中,方法的修饰符为public类型的,修饰符可有可无,例子如下:
public void add(int i , int n)
{
……
}
void add(int i , int n)
{
……
}