22 lines
304 B
Text
22 lines
304 B
Text
class Main {
|
|
|
|
int field;
|
|
|
|
void method() {
|
|
write(this.field);
|
|
writeln();
|
|
}
|
|
|
|
void method(int withArg) {
|
|
write(withArg);
|
|
writeln();
|
|
}
|
|
|
|
void main() {
|
|
this.field = 3;
|
|
method(field);
|
|
method(3);
|
|
method(this.field);
|
|
method();
|
|
}
|
|
}
|