class Parent var _foo as int class Child inherits Parent def check _foo = 3 assert _foo==3 def main is shared Child().check