Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
24
Task/Inheritance-Single/Lasso/inheritance-single.lasso
Normal file
24
Task/Inheritance-Single/Lasso/inheritance-single.lasso
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
define animal => type {
|
||||
data public gender::string
|
||||
}
|
||||
|
||||
define dog => type {
|
||||
parent animal
|
||||
}
|
||||
|
||||
define cat => type {
|
||||
parent animal
|
||||
}
|
||||
|
||||
define collie => type {
|
||||
parent dog
|
||||
}
|
||||
|
||||
define lab => type {
|
||||
parent dog
|
||||
}
|
||||
|
||||
local(myanimal = lab)
|
||||
|
||||
#myanimal -> gender = 'Male'
|
||||
#myanimal -> gender
|
||||
Loading…
Add table
Add a link
Reference in a new issue