in C++ and Java, if you have (pseudo code)
class A
{
int x;
static void method(){...}
void anotherMethod(){...}
}you can access method() through an A's instance like this
A a = ....;
a.method();But you cannot do this in C#, you have to use A.method()if anotherMethod() has to use the member variable "x" directly, then anotherMethod() cannot be a static method, since a static method does not have an implicit "this" parameter passed in

解决方案 »

  1.   

    原来中文这么绕口啊?谁翻译的?横看竖看都不知道在说什么。中文里把CLASS里的FIELD叫“字段”么?ridiculous!
      

  2.   

    “如果一个方法需要访问一个对象的非静态实例字段,它就不可能是一个静态方法”这句话有问题:
    本意应该是一个类的非静态方法不能用通常(使用this指针)的方法访问这个类定义的静态成员。在这一点上java和c++是一样的。
      

  3.   

    1.在JAVA中是可以的
    2.在JAVA中只有静态方法可以访问静态变量。