class A { int myField; } class B { int method(A a) { return A.myField; } }