Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Inheritance-Single/BBC-BASIC/inheritance-single.basic
Normal file
20
Task/Inheritance-Single/BBC-BASIC/inheritance-single.basic
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
INSTALL @lib$+"CLASSLIB"
|
||||
|
||||
DIM Animal{method}
|
||||
PROC_class(Animal{})
|
||||
|
||||
DIM Cat{method}
|
||||
PROC_inherit(Cat{}, Animal{})
|
||||
PROC_class(Cat{})
|
||||
|
||||
DIM Dog{method}
|
||||
PROC_inherit(Dog{}, Animal{})
|
||||
PROC_class(Dog{})
|
||||
|
||||
DIM Labrador{method}
|
||||
PROC_inherit(Labrador{}, Dog{})
|
||||
PROC_class(Labrador{})
|
||||
|
||||
DIM Collie{method}
|
||||
PROC_inherit(Collie{}, Dog{})
|
||||
PROC_class(Collie{})
|
||||
Loading…
Add table
Add a link
Reference in a new issue