Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Inheritance-Multiple/Io/inheritance-multiple.io
Normal file
12
Task/Inheritance-Multiple/Io/inheritance-multiple.io
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Camera := Object clone
|
||||
Camera click := method("Taking snapshot" println)
|
||||
|
||||
MobilePhone := Object clone
|
||||
MobilePhone call := method("Calling home" println)
|
||||
|
||||
CameraPhone := Camera clone
|
||||
CameraPhone appendProto(MobilePhone)
|
||||
|
||||
myPhone := CameraPhone clone
|
||||
myPhone click // --> "Taking snapshot"
|
||||
myPhone call // --> "Calling home"
|
||||
Loading…
Add table
Add a link
Reference in a new issue