zlox/samples/ch28_methods_again.lox

13 lines
175 B
Plaintext

class Brunch {
bacon() {
print "calling bacon()";
}
eggs() {
print "calling eggs()";
}
}
var brunch = Brunch();
print brunch;
brunch.bacon();