class A { var string = "hello"; def log(name) { << self.string; << name; } } def main() { var a = new A(); a.log("user"); } main();