chapter 12
This commit is contained in:
8
examples/simple_class.lox
Normal file
8
examples/simple_class.lox
Normal file
@@ -0,0 +1,8 @@
|
||||
class DevonshireCream {
|
||||
fn serveOn() {
|
||||
return "Scones";
|
||||
}
|
||||
}
|
||||
|
||||
print(DevonshireCream);
|
||||
print(DevonshireCream());
|
Reference in New Issue
Block a user