天刀卡磕头:java programming

来源:百度文库 编辑:神马品牌网 时间:2024/05/02 02:40:46
i don't know whether this is the proper place to raise the following
question,if u think it's the wrong place to do so ,please delete this
post

i was told that within the static method , i can only use the static
methods or static variables,but i found that the following codes are
legal:
class abc
{...
public print()
{...}
}
class abc_ex
{ public static void main(string args[])
{ abc a=new abc();
...
a.print();
...

}

it seems that a.print() and new abc() are not static methods ,why??
thank you very much for your attention and help.