Topic: jdk手册里面field是什么意思?

  Print this page

1.jdk手册里面field是什么意思? Copy to clipboard
Posted by: flyingdd
Posted on: 2005-06-23 14:18

field是什么意思?

2.Re:jdk手册里面field是什么意思? [Re: flyingdd] Copy to clipboard
Posted by: yuhuang
Posted on: 2005-06-24 10:14

“field是什么意思? ”这真是个问题。用中文的“域”、“字段”、“成员”来表述,可以理解吗?

3.Re:jdk手册里面field是什么意思? [Re: yuhuang] Copy to clipboard
Posted by: flyingdd
Posted on: 2005-06-24 17:10

不知道中文教程上怎么说的

4.Re:jdk手册里面field是什么意思? [Re: flyingdd] Copy to clipboard
Posted by: ww1ww1
Posted on: 2005-08-16 16:33

成员变量。

一个class里面可能有三样东西:field, constructor, and method

也就是说除了method和constructor以外的都是field了。

5.Re:jdk手册里面field是什么意思? [Re: ww1ww1] Copy to clipboard
Posted by: ditty
Posted on: 2005-08-16 16:45

ww1ww1 wrote:
成员变量。

一个class里面可能有三样东西:field, constructor, and method

也就是说除了method和constructor以外的都是field了。

补充一下,还应该有:block,include block and static block.


public class Hello{
static{
System.out.println("hello's static block.");
}

{
System.out.println("hello's block.");
}

public void print(){
System.out.println("Hello's print");
}

public static void main(String args[]){
Hello hello = new Hello();
hello.print();
}
}

6.Re:jdk手册里面field是什么意思? [Re: flyingdd] Copy to clipboard
Posted by: quiet
Posted on: 2005-09-04 11:10

我觉得也是数据成员

7.Re:jdk手册里面field是什么意思? [Re: flyingdd] Copy to clipboard
Posted by: abai229
Posted on: 2005-09-13 15:56

类成员

8.Re:jdk手册里面field是什么意思? [Re: flyingdd] Copy to clipboard
Posted by: Jcat
Posted on: 2005-10-03 15:21

类是对数据的封装,field就是“域”,也就是数据(静态的);method是方法,也就是数据具有的动作(动态的)。

请区分:域,类变量(也叫静态域),局部变量


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923