Abstract type: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 345: | Line 345: | ||
(x1 == x2) && (str1 == str2)</lang> |
(x1 == x2) && (str1 == str2)</lang> |
||
And now I can, for example, use the function "func" on two arguments of type Foo. |
And now I can, for example, use the function "func" on two arguments of type Foo. |
||
=={{header|Icon and Unicon}}== |
|||
==={{header|Icon}}=== |
|||
Icon is not object-oriented. |
|||
==={{header|Unicon}}=== |
|||
Unicon does not distinguish between abstract and concrete classes. |
|||
However, programmers may detect unimplemented methods using the same approach |
|||
as with other, similar languages. |
|||
<lang unicon>class abstraction() |
|||
method compare(l,r) |
|||
runerr(1038, "method compare in class abstraction") |
|||
end |
|||
end</lang> |
|||
=={{header|J}}== |
=={{header|J}}== |