Content deleted Content added
|
|
Line 349: |
Line 349: |
|
int add(int a, int b); |
|
int add(int a, int b); |
|
}</lang> |
|
}</lang> |
|
|
|
⚫ |
|
|
⚫ |
<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. |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
|
=={{header|Lua}}== |
|
=={{header|Lua}}== |
Line 503: |
Line 490: |
|
public function add($a, $b); |
|
public function add($a, $b); |
|
}</lang> |
|
}</lang> |
|
|
|
|
⚫ |
|
|
⚫ |
<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. |
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
⚫ |
|
|
|
|
|
|
=={{header|Python}}== |
|
=={{header|Python}}== |