Public

王朝百科·作者佚名  2010-02-16  
宽屏版  字体: |||超大  

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)

{

……

}

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝百科 版权所有