KOOL
1 program
Added 2026-03-13T06:41:24Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: K Object-Oriented Language
Provenance: commit 5d5a031764 · authored 2026-03-13T07:41:52+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Bank Account
Provenance: commit 5d5a031764 · authored 2026-03-13T07:41:52+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
class Object {
var nothing;
method init() { nothing = null; }
}
class Account extends Object {
var balance;
method init(b) { balance = b; }
method deposit(amount) { balance = balance + amount; }
method withdraw(amount) {
if (balance >= amount) {
balance = balance - amount;
return true;
}
return false;
}
method getBalance() { return balance; }
}
var a;
a = new Account(100);
a.deposit(200);
a.withdraw(150);
print(a.getBalance());