RosettaCodeData/Task/Inheritance-Multiple/OoRexx/inheritance-multiple.rexx

15 lines
344 B
Rexx
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
-- inherited classes must be created as mixinclasses.
::class phone mixinclass object
::class camera mixinclass object
-- not a direct subclass of either, but inherits both
::class cameraphone inherit phone camera
-- could also be
::class cameraphone1 subclass phone inherit camera
-- or
::class cameraphone2 subclass camera inherit phone