Abstract type: Difference between revisions

Content added Content deleted
(Added PicoLisp)
m (Fixed alphabetic position)
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}}==
Line 503: Line 490:
public function add($a, $b);
public function add($a, $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|Python}}==
=={{header|Python}}==