19 lines
223 B
Java
Executable File
19 lines
223 B
Java
Executable File
public class Access{
|
|
|
|
public static String staticMember="def";
|
|
|
|
public static staticMethod() {
|
|
return "abc";
|
|
}
|
|
|
|
}
|
|
|
|
class TestStaticAccess {
|
|
|
|
public method1(a,b) {
|
|
x;
|
|
a=x.staticMember;
|
|
b=x.staticMethod();
|
|
}
|
|
}
|