RosettaCodeData/Task/Classes/Phix/classes.phix

11 lines
169 B
Text
Raw Permalink Normal View History

2020-02-17 23:21:07 -08:00
class number
public integer n = 3
procedure show()
printf(1,"show: n is %d\n",{n})
end procedure
end class
number v = new({4})
?v.n
v.n = 5
v.show()