A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
32
Task/Inheritance-Multiple/J/inheritance-multiple.j
Normal file
32
Task/Inheritance-Multiple/J/inheritance-multiple.j
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
coclass 'Camera'
|
||||
|
||||
create=: verb define
|
||||
NB. creation-specifics for a camera go here
|
||||
)
|
||||
|
||||
destroy=: codestroy
|
||||
|
||||
NB. additional camera methods go here
|
||||
|
||||
coclass 'MobilePhone'
|
||||
|
||||
create=: verb define
|
||||
NB. creation-specifics for a mobile phone go here
|
||||
)
|
||||
|
||||
destroy=: codestroy
|
||||
|
||||
NB. additional phone methods go here
|
||||
|
||||
coclass 'CameraPhone'
|
||||
coinsert 'Camera MobilePhone'
|
||||
|
||||
create=: verb define
|
||||
create_Camera_ f. y
|
||||
create_MobilePhone_ f. y
|
||||
NB. creation details specific to a camera phone go here
|
||||
)
|
||||
|
||||
destroy=: codestroy
|
||||
|
||||
NB. additional camera-phone methods go here
|
||||
Loading…
Add table
Add a link
Reference in a new issue