You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class AccessModifierTest
action Main
ClassWithFields obj
obj:a = 1
obj:b = 2
obj:c = 3
obj:OutputFields()
end
end
class ClassWithFields
public integer a = 0
private integer b = 0
integer c = 0
action OutputFields
output a
output b
output c
end
end
Instead it both compiles, runs, and outputs:
1
2
3
The text was updated successfully, but these errors were encountered:
This test program here should give an error:
Instead it both compiles, runs, and outputs:
The text was updated successfully, but these errors were encountered: