langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,21 @@
|
|||
Interface Animal
|
||||
Eat()
|
||||
Sleep()
|
||||
EndInterface
|
||||
|
||||
Interface Cat Extends Animal
|
||||
ChaseMouse()
|
||||
EndInterface
|
||||
|
||||
Interface Dog Extends Animal
|
||||
Bark()
|
||||
WagTail()
|
||||
EndInterface
|
||||
|
||||
Interface Lab Extends Dog
|
||||
Swim()
|
||||
EndInterface
|
||||
|
||||
Interface Collie Extends Dog
|
||||
HeardSheep()
|
||||
EndInterface
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
Class Animal
|
||||
EndClass
|
||||
|
||||
Class Dog Extends Animal
|
||||
Public Method Bark()
|
||||
EndMethod
|
||||
EndClass
|
||||
|
||||
Class Cat Extends Animal
|
||||
Public Method Sleep()
|
||||
EndMethod
|
||||
EndClass
|
||||
|
||||
Class Lab Extends Dog
|
||||
Public Method Swim()
|
||||
EndMethod
|
||||
EndClass
|
||||
|
||||
Class Collie Extends Dog
|
||||
Public Method Fetch()
|
||||
EndMethod
|
||||
EndClass
|
||||
|
||||
;- test the code
|
||||
*Lassie.Collie = NewObject.Collie
|
||||
*Lassie\Bark()
|
||||
*Lassie\Fetch()
|
||||
Loading…
Add table
Add a link
Reference in a new issue