Inheritance/Single: Difference between revisions
Content deleted Content added
mNo edit summary |
No edit summary |
||
Line 275: | Line 275: | ||
Collie := Dog clone |
Collie := Dog clone |
||
Lab := Dog clone |
Lab := Dog clone |
||
=={{header|J}}== |
|||
<lang J> |
|||
saveLocaleName =. coname '' NB. save name of current locale |
|||
coclass 'Animal' |
|||
coclass 'Dog' |
|||
coinsert 'Animal' |
|||
coclass 'Lab' |
|||
coinsert 'Dog' |
|||
coclass 'Collie' |
|||
coinsert 'Dog' |
|||
coclass 'Cat' |
|||
coinsert 'Animal' |
|||
cocurrent saveLocaleName NB. go back to starting locale |
|||
</lang> |
|||
See http://www.jsoftware.com/help/jforc/modular_code.htm |
|||
=={{header|Java}}== |
=={{header|Java}}== |