# .error. must specify class Top def sum() as int is virtual return 1 def product() as int return 2 class Bottom inherits Top def sum() as int # error here. need is override or is new return 2 def main is shared b as Bottom = Bottom() assert b.sum()==2