Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Polymorphic-copy/OoRexx/polymorphic-copy.rexx
Normal file
12
Task/Polymorphic-copy/OoRexx/polymorphic-copy.rexx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
s = .s~new
|
||||
s2 = s~copy -- makes a copy of the first
|
||||
if s == s2 then say "copy didn't work!"
|
||||
if s2~name == "S" then say "polymorphic copy worked"
|
||||
|
||||
::class t
|
||||
::method name
|
||||
return "T"
|
||||
|
||||
::class s subclass t
|
||||
::method name
|
||||
return "S"
|
||||
Loading…
Add table
Add a link
Reference in a new issue