Inheritance/Multiple: Difference between revisions

m
(Lingo added)
Line 671:
on new (me)
c = script("Camera").new()
pmp = script("MobilePhone").new()
 
-- make the Camera instance a parent of the MobilePhone instance
pmp.setProp(#ancestor, c)
 
-- make the MobilePhone instance a parent of this CameraPhone instance
me.ancestor = pmp
 
return me
Anonymous user