Abstract type: Difference between revisions
Content added Content deleted
(added ReScript) |
Thundergnat (talk | contribs) m (Tweak irregular header markup) |
||
Line 532: | Line 532: | ||
</lang> |
</lang> |
||
=={{header|C sharp}}== |
=={{header|C sharp|C#}}== |
||
<lang csharp>abstract class Class1 |
<lang csharp>abstract class Class1 |
||
{ |
{ |
||
Line 2,386: | Line 2,386: | ||
Queue = {New BaseQueue init} %% throws</lang> |
Queue = {New BaseQueue init} %% throws</lang> |
||
=={{header|PARI/GP}} |
=={{header|PARI/GP}}== |
||
GP is not object-oriented and cannot sensibly use abstract types. PARI can use the same solution as [[#C|C]]. |
GP is not object-oriented and cannot sensibly use abstract types. PARI can use the same solution as [[#C|C]]. |
||
=={{header|Pascal}} and {{header|Object Pascal}} |
=={{header|Pascal}} and {{header|Object Pascal}}== |
||
In ObjectPascal mode FreePascal has classes and abstract methods. |
In ObjectPascal mode FreePascal has classes and abstract methods. |
||