Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,44 @@
interface Vocal {
public function speak():String;
}
interface Gravitational {
public function getWeight():Int;
}
abstract class Dog implements Vocal implements Gravitational {
public function speak():String {
return "Woof";
}
public function new() {}
}
class Chihuahua extends Dog {
public function getWeight():Int {
return 5;
}
}
class GreatDane extends Dog {
public function getWeight():Int {
return 150;
}
}
class Main {
static public function main():Void {
var dogs:Array<Dog> = [];
var david = new Chihuahua();
var goliath = new GreatDane();
dogs.push(david);
dogs.push(goliath);
for (dog in dogs) {
trace(dog.speak());
trace(dog.getWeight());
}
}
}

View file

@ -0,0 +1,3 @@
class abstraction()
abstract method compare(l,r) # generates runerr(700, "method compare()")
end