class Top def foo(i as int) pass def foo(i as int, j as int) pass def equals(other as Object?) as bool # .error. Member "equals" also exists in the base class. You must specify return this is other class Bottom inherits Top def foo(i as int) # .error. must specify pass def main is shared pass