Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1,3 +0,0 @@
|
|||
public class Animal {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Cat extends Animal {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Dog extends Animal {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Lab extends Dog {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Collie extends Dog {
|
||||
// ...
|
||||
}
|
||||
15
Task/Inheritance-Single/ActionScript/inheritance-single.as
Normal file
15
Task/Inheritance-Single/ActionScript/inheritance-single.as
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
public class Animal {
|
||||
// ...
|
||||
}
|
||||
public class Cat extends Animal {
|
||||
// ...
|
||||
}
|
||||
public class Dog extends Animal {
|
||||
// ...
|
||||
}
|
||||
public class Lab extends Dog {
|
||||
// ...
|
||||
}
|
||||
public class Collie extends Dog {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Animal{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Dog extends Animal {
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Cat extends Animal {
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Lab extends Dog {
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Collie extends Dog {
|
||||
//functions go here...
|
||||
}
|
||||
15
Task/Inheritance-Single/Aikido/inheritance-single.aikido
Normal file
15
Task/Inheritance-Single/Aikido/inheritance-single.aikido
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class Animal{
|
||||
//functions go here...
|
||||
}
|
||||
class Dog extends Animal {
|
||||
//functions go here...
|
||||
}
|
||||
class Cat extends Animal {
|
||||
//functions go here...
|
||||
}
|
||||
class Lab extends Dog {
|
||||
//functions go here...
|
||||
}
|
||||
class Collie extends Dog {
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Drums{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class LatinKit extends Drums{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class ElectronicKit extends Drums{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Congas extends LatinKit{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class TechnoDrums extends ElectronicKit{
|
||||
//functions go here...
|
||||
}
|
||||
15
Task/Inheritance-Single/ChucK/inheritance-single.chuck
Normal file
15
Task/Inheritance-Single/ChucK/inheritance-single.chuck
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
public class Drums{
|
||||
//functions go here...
|
||||
}
|
||||
public class LatinKit extends Drums{
|
||||
//functions go here...
|
||||
}
|
||||
public class ElectronicKit extends Drums{
|
||||
//functions go here...
|
||||
}
|
||||
public class Congas extends LatinKit{
|
||||
//functions go here...
|
||||
}
|
||||
public class TechnoDrums extends ElectronicKit{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class
|
||||
ANIMAL
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class
|
||||
DOG
|
||||
inherit
|
||||
ANIMAL
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class
|
||||
CAT
|
||||
inherit
|
||||
ANIMAL
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class
|
||||
LAB
|
||||
inherit
|
||||
DOG
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class
|
||||
COLLIE
|
||||
inherit
|
||||
DOG
|
||||
end
|
||||
23
Task/Inheritance-Single/Eiffel/inheritance-single.e
Normal file
23
Task/Inheritance-Single/Eiffel/inheritance-single.e
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
class
|
||||
ANIMAL
|
||||
end
|
||||
class
|
||||
DOG
|
||||
inherit
|
||||
ANIMAL
|
||||
end
|
||||
class
|
||||
CAT
|
||||
inherit
|
||||
ANIMAL
|
||||
end
|
||||
class
|
||||
LAB
|
||||
inherit
|
||||
DOG
|
||||
end
|
||||
class
|
||||
COLLIE
|
||||
inherit
|
||||
DOG
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Animal{
|
||||
//contents go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Dog extends Animal{
|
||||
//contents go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Cat extends Animal{
|
||||
//contents go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Lab extends Dog{
|
||||
//contents go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Collie extends Dog{
|
||||
//contents go here...
|
||||
}
|
||||
15
Task/Inheritance-Single/Groovy/inheritance-single.groovy
Normal file
15
Task/Inheritance-Single/Groovy/inheritance-single.groovy
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class Animal{
|
||||
//contents go here...
|
||||
}
|
||||
class Dog extends Animal{
|
||||
//contents go here...
|
||||
}
|
||||
class Cat extends Animal{
|
||||
//contents go here...
|
||||
}
|
||||
class Lab extends Dog{
|
||||
//contents go here...
|
||||
}
|
||||
class Collie extends Dog{
|
||||
//contents go here...
|
||||
}
|
||||
|
|
@ -1,3 +1,15 @@
|
|||
class Animal {
|
||||
// ...
|
||||
}
|
||||
class Cat extends Animal {
|
||||
// ...
|
||||
}
|
||||
class Dog extends Animal {
|
||||
// ...
|
||||
}
|
||||
class Lab extends Dog {
|
||||
// ...
|
||||
}
|
||||
class Collie extends Dog {
|
||||
// ...
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,14 @@
|
|||
class Cat extends Animal {
|
||||
// ...
|
||||
}
|
||||
class Animal ()
|
||||
end
|
||||
|
||||
class Dog : Animal ()
|
||||
end
|
||||
|
||||
class Cat : Animal ()
|
||||
end
|
||||
|
||||
class Lab : Dog ()
|
||||
end
|
||||
|
||||
class Collie : Dog ()
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
class Dog extends Animal {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Lab extends Dog {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
class Collie extends Dog {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
class Animal ()
|
||||
end
|
||||
|
||||
class Dog : Animal ()
|
||||
end
|
||||
|
||||
class Cat : Animal ()
|
||||
end
|
||||
|
||||
class Lab : Dog ()
|
||||
end
|
||||
|
||||
class Collie : Dog ()
|
||||
end
|
||||
|
|
@ -1 +1,9 @@
|
|||
coclass 'Animal'
|
||||
coclass 'Dog'
|
||||
coinsert 'Animal'
|
||||
coclass 'Cat'
|
||||
coinsert 'Animal'
|
||||
coclass 'Lab'
|
||||
coinsert 'Dog'
|
||||
coclass 'Collie'
|
||||
coinsert 'Dog'
|
||||
|
|
|
|||
|
|
@ -1,2 +1,4 @@
|
|||
coclass 'Dog'
|
||||
coinsert 'Animal'
|
||||
coinsert_Dog_ 'Animal'
|
||||
coinsert_Cat_ 'Animal'
|
||||
coinsert_Lab_ 'Dog'
|
||||
coinsert_Collie_ 'Dog'
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
coclass 'Cat'
|
||||
coinsert 'Animal'
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
coclass 'Lab'
|
||||
coinsert 'Dog'
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
coclass 'Collie'
|
||||
coinsert 'Dog'
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
coinsert_Dog_ 'Animal'
|
||||
coinsert_Cat_ 'Animal'
|
||||
coinsert_Lab_ 'Dog'
|
||||
coinsert_Collie_ 'Dog'
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Animal{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Dog extends Animal{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Cat extends Animal{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Lab extends Dog{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
public class Collie extends Dog{
|
||||
//functions go here...
|
||||
}
|
||||
15
Task/Inheritance-Single/Java/inheritance-single.java
Normal file
15
Task/Inheritance-Single/Java/inheritance-single.java
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
public class Animal{
|
||||
//functions go here...
|
||||
}
|
||||
public class Dog extends Animal{
|
||||
//functions go here...
|
||||
}
|
||||
public class Cat extends Animal{
|
||||
//functions go here...
|
||||
}
|
||||
public class Lab extends Dog{
|
||||
//functions go here...
|
||||
}
|
||||
public class Collie extends Dog{
|
||||
//functions go here...
|
||||
}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
function Animal() {
|
||||
// ...
|
||||
}
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function Dog() {
|
||||
// ...
|
||||
}
|
||||
Dog.prototype = new Animal();
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function Cat() {
|
||||
// ...
|
||||
}
|
||||
Cat.prototype = new Animal();
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function Collie() {
|
||||
// ...
|
||||
}
|
||||
Collie.prototype = new Dog();
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
function Lab() {
|
||||
// ...
|
||||
}
|
||||
Lab.prototype = new Dog();
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
Animal.prototype.speak = function() {print("an animal makes a sound")};
|
||||
|
||||
var lab = new Lab();
|
||||
lab.speak(); // shows "an animal makes a sound"
|
||||
28
Task/Inheritance-Single/JavaScript/inheritance-single.js
Normal file
28
Task/Inheritance-Single/JavaScript/inheritance-single.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
function Animal() {
|
||||
// ...
|
||||
}
|
||||
|
||||
function Dog() {
|
||||
// ...
|
||||
}
|
||||
Dog.prototype = new Animal();
|
||||
|
||||
function Cat() {
|
||||
// ...
|
||||
}
|
||||
Cat.prototype = new Animal();
|
||||
|
||||
function Collie() {
|
||||
// ...
|
||||
}
|
||||
Collie.prototype = new Dog();
|
||||
|
||||
function Lab() {
|
||||
// ...
|
||||
}
|
||||
Lab.prototype = new Dog();
|
||||
|
||||
Animal.prototype.speak = function() {print("an animal makes a sound")};
|
||||
|
||||
var lab = new Lab();
|
||||
lab.speak(); // shows "an animal makes a sound"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
-- parent script "Animal"
|
||||
-- ...
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
-- parent script "Dog"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Animal").new()
|
||||
return me
|
||||
end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
-- parent script "Cat"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Animal").new()
|
||||
return me
|
||||
end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
-- parent script "Lab"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Dog").new()
|
||||
return me
|
||||
end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
-- parent script "Collie"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Dog").new()
|
||||
return me
|
||||
end
|
||||
34
Task/Inheritance-Single/Lingo/inheritance-single.lingo
Normal file
34
Task/Inheritance-Single/Lingo/inheritance-single.lingo
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
-- parent script "Animal"
|
||||
-- ...
|
||||
|
||||
-- parent script "Dog"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Animal").new()
|
||||
return me
|
||||
end
|
||||
|
||||
-- parent script "Cat"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Animal").new()
|
||||
return me
|
||||
end
|
||||
|
||||
-- parent script "Lab"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Dog").new()
|
||||
return me
|
||||
end
|
||||
|
||||
-- parent script "Collie"
|
||||
property ancestor
|
||||
|
||||
on new (me)
|
||||
me.ancestor = script("Dog").new()
|
||||
return me
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
Section Header
|
||||
+ name := ANIMAL;
|
||||
// ...
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
Section Header
|
||||
+ name := CAT;
|
||||
Section Inherit
|
||||
- parent : ANIMAL := ANIMAL;
|
||||
// ...
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
Section Header
|
||||
+ name := DOG;
|
||||
Section Inherit
|
||||
- parent : ANIMAL := ANIMAL;
|
||||
// ...
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
Section Header
|
||||
+ name := LAB;
|
||||
Section Inherit
|
||||
- parent : DOG := DOG;
|
||||
// ...
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
Section Header
|
||||
+ name := COLLIE;
|
||||
Section Inherit
|
||||
- parent : DOG := DOG;
|
||||
// ...
|
||||
23
Task/Inheritance-Single/Lisaac/inheritance-single.lisaac
Normal file
23
Task/Inheritance-Single/Lisaac/inheritance-single.lisaac
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Section Header
|
||||
+ name := ANIMAL;
|
||||
// ...
|
||||
Section Header
|
||||
+ name := CAT;
|
||||
Section Inherit
|
||||
- parent : ANIMAL := ANIMAL;
|
||||
// ...
|
||||
Section Header
|
||||
+ name := DOG;
|
||||
Section Inherit
|
||||
- parent : ANIMAL := ANIMAL;
|
||||
// ...
|
||||
Section Header
|
||||
+ name := LAB;
|
||||
Section Inherit
|
||||
- parent : DOG := DOG;
|
||||
// ...
|
||||
Section Header
|
||||
+ name := COLLIE;
|
||||
Section Inherit
|
||||
- parent : DOG := DOG;
|
||||
// ...
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
class animal =
|
||||
object (self)
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class dog =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class cat =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class lab =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class collie =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
24
Task/Inheritance-Single/OCaml/inheritance-single.ocaml
Normal file
24
Task/Inheritance-Single/OCaml/inheritance-single.ocaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
class animal =
|
||||
object (self)
|
||||
(*functions go here...*)
|
||||
end
|
||||
class dog =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
class cat =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
class lab =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
class collie =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
package Animal;
|
||||
#functions go here...
|
||||
1;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package Dog;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package Cat;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package Lab;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
package Collie;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
use MooseX::Declare;
|
||||
|
||||
class Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Dog extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Cat extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Lab extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
class Collie extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
47
Task/Inheritance-Single/Perl/inheritance-single.pl
Normal file
47
Task/Inheritance-Single/Perl/inheritance-single.pl
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package Animal;
|
||||
#functions go here...
|
||||
1;
|
||||
|
||||
package Dog;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
|
||||
package Cat;
|
||||
use Animal;
|
||||
@ISA = qw( Animal );
|
||||
#functions go here...
|
||||
1;
|
||||
|
||||
package Lab;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
|
||||
package Collie;
|
||||
use Dog;
|
||||
@ISA = qw( Dog );
|
||||
#functions go here...
|
||||
1;
|
||||
|
||||
# The same using the [http://search.cpan.org/perldoc?MooseX::Declare MooseX::Declare] module:
|
||||
|
||||
use MooseX::Declare;
|
||||
|
||||
class Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Dog extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Cat extends Animal {
|
||||
# methods go here...
|
||||
}
|
||||
class Lab extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
class Collie extends Dog {
|
||||
# methods go here...
|
||||
}
|
||||
|
|
@ -1,14 +1,12 @@
|
|||
(notonline)-->
|
||||
<span style="color: #008080;">without</span> <span style="color: #008080;">js</span> <span style="color: #000080;font-style:italic;">-- (class)</span>
|
||||
<span style="color: #008080;">class</span> <span style="color: #000000;">Animal</span>
|
||||
<span style="color: #008080;">private</span> <span style="color: #004080;">string</span> <span style="color: #000000;">species</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">class</span>
|
||||
<span style="color: #008080;">class</span> <span style="color: #000000;">Dog</span> <span style="color: #008080;">extends</span> <span style="color: #000000;">Animal</span>
|
||||
<span style="color: #008080;">public</span> <span style="color: #008080;">procedure</span> <span style="color: #000000;">bark</span><span style="color: #0000FF;">()</span>
|
||||
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #008000;">"woof\n"</span><span style="color: #0000FF;">)</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">procedure</span>
|
||||
<span style="color: #008080;">end</span> <span style="color: #008080;">class</span>
|
||||
<span style="color: #008080;">class</span> <span style="color: #000000;">Lab</span> <span style="color: #008080;">extends</span> <span style="color: #000000;">Dog</span> <span style="color: #008080;">end</span> <span style="color: #008080;">class</span>
|
||||
<span style="color: #008080;">class</span> <span style="color: #000000;">Collie</span> <span style="color: #008080;">extends</span> <span style="color: #000000;">Dog</span> <span style="color: #008080;">end</span> <span style="color: #008080;">class</span>
|
||||
<span style="color: #008080;">class</span> <span style="color: #000000;">Cat</span> <span style="color: #008080;">extends</span> <span style="color: #000000;">Animal</span> <span style="color: #008080;">end</span> <span style="color: #008080;">class</span>
|
||||
<!--
|
||||
without js -- (class)
|
||||
class Animal
|
||||
private string species
|
||||
end class
|
||||
class Dog extends Animal
|
||||
public procedure bark()
|
||||
puts(1,"woof\n")
|
||||
end procedure
|
||||
end class
|
||||
class Lab extends Dog end class
|
||||
class Collie extends Dog end class
|
||||
class Cat extends Animal end class
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
animal = ()
|
||||
|
|
@ -1 +0,0 @@
|
|||
dog = (| parent* = animal |)
|
||||
|
|
@ -1 +0,0 @@
|
|||
cat = (| parent* = animal |)
|
||||
|
|
@ -1 +0,0 @@
|
|||
lab = (| parent* = dog |)
|
||||
|
|
@ -1 +0,0 @@
|
|||
collie = (| parent* = dog |)
|
||||
5
Task/Inheritance-Single/Self/inheritance-single.self
Normal file
5
Task/Inheritance-Single/Self/inheritance-single.self
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
animal = ()
|
||||
dog = (| parent* = animal |)
|
||||
cat = (| parent* = animal |)
|
||||
lab = (| parent* = dog |)
|
||||
collie = (| parent* = dog |)
|
||||
Loading…
Add table
Add a link
Reference in a new issue