Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Inheritance-Multiple/Lingo/inheritance-multiple-3.lingo
Normal file
15
Task/Inheritance-Multiple/Lingo/inheritance-multiple-3.lingo
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- parent script "CameraPhone"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
c = script("Camera").new()
|
||||
mp = script("MobilePhone").new()
|
||||
|
||||
-- make the Camera instance a parent of the MobilePhone instance
|
||||
mp.setProp(#ancestor, c)
|
||||
|
||||
-- make the MobilePhone instance a parent of this CameraPhone instance
|
||||
me.ancestor = mp
|
||||
|
||||
return me
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue