Anonymous user
Abstract type: Difference between revisions
m
Fixed alphabetic position
(Added PicoLisp) |
m (Fixed alphabetic position) |
||
Line 349:
int add(int a, int b);
}</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}}==
Line 503 ⟶ 490:
public function add($a, $b);
}</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}}==
|