Abstract type: Difference between revisions

Content added Content deleted
Line 1,644: Line 1,644:
=={{header|M2000 Interpreter}}==
=={{header|M2000 Interpreter}}==
M2000 not use interfaces, but can combine groups (used as objects), and because we can alter definitions, we can make an Abstract group by implement modules and functions with a call to Error "not implement yet"
M2000 not use interfaces, but can combine groups (used as objects), and because we can alter definitions, we can make an Abstract group by implement modules and functions with a call to Error "not implement yet"
<lang>Class BaseState {
<lang M2000 Interpreter>Class BaseState {
Private:
Private:
      x as double=1212, z1 as currency=1000, k$="ok"
      x as double=1212, z1 as currency=1000, k$="ok"
Line 1,706: Line 1,706:
      \\ we can use For Object {} and a dot before members to get access
      \\ we can use For Object {} and a dot before members to get access
      Print .z=1050.12, ExpType$(.z), Type$(.z) ' true, Currency, Group
      Print .z=1050.12, ExpType$(.z), Type$(.z) ' true, Currency, Group
}</lang>
}
</lang>


=={{header|Mathematica}}/{{header|Wolfram Language}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==