compiler-design-eth/javali_tests/HW2/OkSimpleObject.javali

23 lines
304 B
Text
Raw Normal View History

2020-01-15 22:30:09 +01:00
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();
}
}