Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
24
Task/Inheritance-Single/Arturo/inheritance-single.arturo
Normal file
24
Task/Inheritance-Single/Arturo/inheritance-single.arturo
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; Base Animal type
|
||||
define :animal [
|
||||
init: constructor [name :string]
|
||||
]
|
||||
|
||||
; Dog type inheriting from Animal
|
||||
define :dog is :animal [
|
||||
; ...
|
||||
]
|
||||
|
||||
; Cat type inheriting from Animal
|
||||
define :cat is :animal [
|
||||
; ...
|
||||
]
|
||||
|
||||
; Lab type inheriting from Dog
|
||||
define :lab is :dog [
|
||||
; ...
|
||||
]
|
||||
|
||||
; Collie type inheriting from Dog
|
||||
define :collie is :dog [
|
||||
; ...
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue