Abstract type: Difference between revisions
Content added Content deleted
(Added PicoLisp) |
|||
Line 349: | Line 349: | ||
int add(int a, int b); |
int add(int a, int b); |
||
}</lang> |
}</lang> |
||
=={{header|PicoLisp}}== |
|||
<lang PicoLisp># In PicoLisp there is no formal difference between abstract and concrete |
|||
# classes, just a naming convention where abstract classes start with a |
|||
# lower case character after the '+' (the naming convention for classes). |
|||
# This tells the programmer that this class has not sufficient methods |
|||
# defined to survive on its own. |
|||
(class +abstractClass) |
|||
(dm someMethod> () |
|||
(foo) |
|||
(bar) )</lang> |
|||
=={{header|Lua}}== |
=={{header|Lua}}== |